diff --git a/commands/admin/ban.js b/commands/admin/ban.js index a84d610..5867e7a 100644 --- a/commands/admin/ban.js +++ b/commands/admin/ban.js @@ -26,6 +26,8 @@ module.exports = class BanCommand extends Command { } async run(message, { member, reasons }) { + if(!reasons) + reasons = 'Nothing have been specified' if(member.id === message.author.id) return message.say("Why would you ban yourself ?") member.ban(reasons) diff --git a/commands/admin/kick.js b/commands/admin/kick.js index d61bee5..e37df67 100644 --- a/commands/admin/kick.js +++ b/commands/admin/kick.js @@ -26,6 +26,8 @@ module.exports = class KickCommand extends Command { } async run(message, { member, reasons }) { + if(!reasons) + reasons = 'Nothing have been specified' if(member.id === message.author.id) return message.say("Why would you kick yourself ?") member.kick(reasons)