From 40d29e22970290976c7c4a83d87e0dbb5d24bf8e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 4 May 2017 02:45:46 +0000 Subject: [PATCH] And do that --- commands/moderation/ban.js | 3 +-- commands/moderation/kick.js | 3 +-- commands/moderation/softban.js | 3 +-- commands/textedit/zalgo.js | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 43863e92..a5165f93 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -24,9 +24,8 @@ module.exports = class BanCommand extends Command { prompt: 'What do you want to set the reason as?', type: 'string', validate: reason => { - if(reason.length < 140) { + if(reason.length < 140) return true; - } return `Please keep your reason under 140 characters, you have ${reason.length}.`; } } diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index d0b22ad3..95c2b733 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -21,9 +21,8 @@ module.exports = class KickCommand extends Command { prompt: 'What do you want to set the reason as?', type: 'string', validate: reason => { - if(reason.length < 140) { + if(reason.length < 140) return true; - } return `Please keep your reason under 140 characters, you have ${reason.length}.`; } } diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index ffb93967..c7dc2fbe 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -21,9 +21,8 @@ module.exports = class SoftbanCommand extends Command { prompt: 'What do you want to set the reason as?', type: 'string', validate: reason => { - if(reason.length < 140) { + if(reason.length < 140) return true; - } return `Please keep your reason under 140 characters, you have ${reason.length}.`; } } diff --git a/commands/textedit/zalgo.js b/commands/textedit/zalgo.js index e0f50a08..aed03baf 100644 --- a/commands/textedit/zalgo.js +++ b/commands/textedit/zalgo.js @@ -14,9 +14,8 @@ module.exports = class ZalgoCommand extends Command { prompt: 'What text would you like to convert to zalgo?', type: 'string', validate: text => { - if(text.length < 500) { + if(text.length < 500) return true; - } return `Please keep your text under 500 characters, you have ${text.length}.`; }, parse: text => zalgo(text)