This commit is contained in:
Dragon Fire
2021-06-20 09:55:54 -04:00
parent 70799c12e4
commit ff93912afc
+1 -1
View File
@@ -100,7 +100,7 @@ module.exports = class CommandClient extends Client {
} }
} }
const throttleAmount = command.throttles.get(msg.author.id) || 0; const throttleAmount = command.throttles.get(msg.author.id) || 0;
if (throttleAmount >= command.throttling.uses) { if (throttleAmount >= command.throttling.usages) {
const timeout = command._timeouts.get(msg.author.id); const timeout = command._timeouts.get(msg.author.id);
await msg.reply( await msg.reply(
`Please wait ${getTimeLeft(timeout)} seconds before using the \`${command.name}\` command again.` `Please wait ${getTimeLeft(timeout)} seconds before using the \`${command.name}\` command again.`