diff options
| author | Alee <alee14498@gmail.com> | 2018-02-23 22:27:06 -0500 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-02-23 22:27:06 -0500 |
| commit | c8eb132e8a90620ebdf980ef1b033b509dcaef07 (patch) | |
| tree | 80486db5c12922da25bd7be038cb295c10900057 /commands/ban.js | |
| parent | ec4fd3ed863dffa27c2ddaf8d702f8aa27f174ff (diff) | |
| download | PokeBot-c8eb132e8a90620ebdf980ef1b033b509dcaef07.tar.gz PokeBot-c8eb132e8a90620ebdf980ef1b033b509dcaef07.tar.bz2 PokeBot-c8eb132e8a90620ebdf980ef1b033b509dcaef07.zip | |
Fixed something
Diffstat (limited to 'commands/ban.js')
| -rw-r--r-- | commands/ban.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/ban.js b/commands/ban.js index 6b489b5..7507a3d 100644 --- a/commands/ban.js +++ b/commands/ban.js @@ -2,7 +2,7 @@ exports.run = (bot, msg, args) => { if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permssion to ban members'); if (!msg.guild.member(bot.user).hasPermission('BAN_MEMBERS')) return msg.reply('I don\'t have permssion to ban members'); const member = msg.mentions.members.first(); - member.kick(msg.author.tag + ': ' + args.join(' ').slice(3 + member.user.id.length)).then(() => { + member.ban(msg.author.tag + ': ' + args.join(' ').slice(3 + member.user.id.length)).then(() => { msg.channel.send(`Alright, I banned **${member.user.tag}** for the reason **${args.join(' ').slice(3 + member.user.id.length)}**`); }); }; |
