add message when nothing have been specified

Commando
loicbersier 6 years ago
parent 542e5be326
commit e041712a2d

@ -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)

@ -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)

Loading…
Cancel
Save