diff --git a/framework/Client.js b/framework/Client.js index df346c3f..8953c9aa 100644 --- a/framework/Client.js +++ b/framework/Client.js @@ -106,7 +106,7 @@ module.exports = class CommandClient extends Client { return; } command.throttles.set(msg.author.id, { - usages: throttleAmount.usages + 1, + usages: (throttleAmount?.usages || 0) + 1, timeFinish: Date.now() + (command.throttling.duration * 1000) }); if (!throttleAmount) {