mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix throttles
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user