dosent let go more than 120 sec
This commit is contained in:
parent
66a2dc21a0
commit
ecb27a72e3
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ module.exports = class CustomResponseCommand extends Command {
|
|||
}
|
||||
|
||||
async run(message, { slowmodeNumber }) {
|
||||
if (slowmodeNumber < 120)
|
||||
message.say("Slowmode can only be set to 120 seconds or lower!");
|
||||
message.channel.setRateLimitPerUser(slowmodeNumber);
|
||||
message.say(`Slowmode have been set to ${slowmodeNumber} seconds`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue