From 70799c12e451e81f246a74cea85d78239dfa01f5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 20 Jun 2021 09:51:24 -0400 Subject: [PATCH] Fix throttles --- framework/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Client.js b/framework/Client.js index cd12ef2b..85fdd65f 100644 --- a/framework/Client.js +++ b/framework/Client.js @@ -109,7 +109,7 @@ module.exports = class CommandClient extends Client { } command.throttles.set(msg.author.id, throttleAmount + 1); if (!throttleAmount) { - const timeout = setTimeout(() => command.throttles.delete(msg.author.id), command.throttling.duration); + const timeout = setTimeout(() => command.throttles.delete(msg.author.id), command.throttling.duration * 1000); command._timeouts.set(msg.author.id, timeout); } }