From ecb27a72e3cb78ba7fc36a8a03381ab16f548a71 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Fri, 28 Dec 2018 00:50:41 +0100 Subject: [PATCH] dosent let go more than 120 sec --- commands/admin/slowmode.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/admin/slowmode.js b/commands/admin/slowmode.js index 3f39d54f..e54ed51e 100644 --- a/commands/admin/slowmode.js +++ b/commands/admin/slowmode.js @@ -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`); }