From 64bca3c58ad426df39ff2ecbdd42ab94e76d991b Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Thu, 8 Nov 2018 22:53:18 +0100 Subject: [PATCH] PM the user with the reasons --- commands/admin/kick.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/admin/kick.js b/commands/admin/kick.js index b6763ecd..b6429b53 100644 --- a/commands/admin/kick.js +++ b/commands/admin/kick.js @@ -30,6 +30,7 @@ module.exports = class KickCommand extends Command { reasons = 'Nothing have been specified.' if(member.id === message.author.id) 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}".`)); };