Fix throttles

This commit is contained in:
Dragon Fire
2021-06-20 09:51:24 -04:00
parent 555be11290
commit 70799c12e4
+1 -1
View File
@@ -109,7 +109,7 @@ module.exports = class CommandClient extends Client {
} }
command.throttles.set(msg.author.id, throttleAmount + 1); command.throttles.set(msg.author.id, throttleAmount + 1);
if (!throttleAmount) { 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); command._timeouts.set(msg.author.id, timeout);
} }
} }