From da090ba2c3506daf71442c5ec06eb90e6a381870 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 20 Jun 2021 20:30:28 -0400 Subject: [PATCH] Fix --- framework/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {