From 0a804b3e673f77b27b751ff302eb7b0d945e5178 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 25 Sep 2018 20:09:42 +0200 Subject: [PATCH] Added todo --- commands/admin/ban.js | 7 +++---- commands/admin/kick.js | 10 ++++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/commands/admin/ban.js b/commands/admin/ban.js index 31c25761..1d183a03 100644 --- a/commands/admin/ban.js +++ b/commands/admin/ban.js @@ -24,11 +24,10 @@ module.exports = class BanCommand extends Command { if(member.id === message.author.id) { message.say("Why would you ban yourself ?") } else - member.ban().then(member => { - message.reply(`${member.user.username} was succesfully banned.`); + member.ban() + .then(() => message.reply(`${member.user.username} was succesfully banned.`)); //TODO //Send a message when the bot didint manage to kick - }); - } + }; }; \ No newline at end of file diff --git a/commands/admin/kick.js b/commands/admin/kick.js index 77105c2d..4562da70 100644 --- a/commands/admin/kick.js +++ b/commands/admin/kick.js @@ -24,8 +24,10 @@ module.exports = class KickCommand extends Command { if(member.id === message.author.id) { message.say("Why would you kick yourself ?") } else - member.kick().then(member => { - message.reply(`${member.user.username} was succesfully kicked.`); - }); - } + member.kick() + .then(() => message.reply(`${member.user.username} was succesfully kicked.`)); + + //TODO + //Send a message when the bot didint manage to kick + }; }; \ No newline at end of file