From 63f05a4c781ddca4c4abebac3cf1e532cb8a0b3d Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Thu, 6 Dec 2018 20:11:21 +0100 Subject: [PATCH] fixed an error --- commands/admin/ban.js | 4 +++- commands/admin/kick.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/admin/ban.js b/commands/admin/ban.js index cd9d01b..36d5c90 100644 --- a/commands/admin/ban.js +++ b/commands/admin/ban.js @@ -32,6 +32,8 @@ module.exports = class BanCommand extends Command { return message.say("Why would you ban yourself ?") await member.send(`https://youtu.be/55-mHgUjZfY\nYou have been banned for the following reasons: "${reasons}"`); member.ban(`Banned by : ${message.author.username} for the following reasons : ${reasons}`) - .then(() => message.reply(`${member.user.username} was succesfully banned with the following reasons "${reasons}".`)); + .then(() => message.reply(`${member.user.username} was succesfully banned with the following reasons "${reasons}".`)) + .error(message.say('Cant ban me fool')) + }; }; \ No newline at end of file diff --git a/commands/admin/kick.js b/commands/admin/kick.js index b6429b5..23b90a3 100644 --- a/commands/admin/kick.js +++ b/commands/admin/kick.js @@ -32,6 +32,7 @@ module.exports = class KickCommand extends Command { return message.say("Why would you kick yourself ?") await member.send(`You have been kicked for the following reasons: "${reasons}"`); member.kick(`Kicked by : ${message.author.username} for the following reasons : ${reasons}`) - .then(() => message.reply(`${member.user.username} was succesfully kicked with the following reasons "${reasons}".`)); + .then(() => message.reply(`${member.user.username} was succesfully kicked with the following reasons "${reasons}".`)) + .error(message.say('Cant kick me fool')) }; }; \ No newline at end of file