This commit is contained in:
Dragon Fire
2021-06-20 20:30:28 -04:00
parent fb2f424586
commit da090ba2c3
+1 -1
View File
@@ -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) {