diff options
| author | Alee <alee14498@gmail.com> | 2018-02-23 22:00:46 -0500 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-02-23 22:00:46 -0500 |
| commit | 298ad4f7a19df765d9e38cdef01aca110931973b (patch) | |
| tree | c8e9eba62aa4e92a119180f1b114279ff7468528 /commands/kick.js | |
| parent | 592656050fb67ba9c0d011a9b650100916e5ec61 (diff) | |
| parent | 4b7d6d983362048e2f3f12c451531c67cfe87be8 (diff) | |
| download | PokeBot-298ad4f7a19df765d9e38cdef01aca110931973b.tar.gz PokeBot-298ad4f7a19df765d9e38cdef01aca110931973b.tar.bz2 PokeBot-298ad4f7a19df765d9e38cdef01aca110931973b.zip | |
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'commands/kick.js')
| -rw-r--r-- | commands/kick.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/kick.js b/commands/kick.js index b58c4c3..49906a1 100644 --- a/commands/kick.js +++ b/commands/kick.js @@ -2,7 +2,7 @@ exports.run = (bot, msg, args) => { if (!msg.member.hasPermission('KICK_MEMBERS')) return msg.reply('You don\'t have permssion to kick members'); if (!msg.guild.member(bot.user).hasPermission('KICK_MEMBERS')) return msg.reply('I don\'t have permssion to kick members'); const member = msg.mentions.members.first(); - member.kick(args.join(' ').slice(3 + member.user.id.length)).then(() => { + member.kick(msg.author.tag + ': ' + args.join(' ').slice(3 + member.user.id.length)).then(() => { msg.channel.send(`Alright, I kicked **${member.user.tag}** for the reason **${args.join(' ').slice(3 + member.user.id.length)}**`); }); }; |
