mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ module.exports = class CommandClient extends Client {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
command.throttles.set(msg.author.id, {
|
command.throttles.set(msg.author.id, {
|
||||||
usages: throttleAmount.usages + 1,
|
usages: (throttleAmount?.usages || 0) + 1,
|
||||||
timeFinish: Date.now() + (command.throttling.duration * 1000)
|
timeFinish: Date.now() + (command.throttling.duration * 1000)
|
||||||
});
|
});
|
||||||
if (!throttleAmount) {
|
if (!throttleAmount) {
|
||||||
|
|||||||
Reference in New Issue
Block a user