fix warn reason

This commit is contained in:
Unknown 2018-02-24 12:45:54 -05:00
parent 760466af7b
commit 35bc3c1ab4

View file

@ -1,6 +1,7 @@
exports.run = (bot, msg, args) => {
if (!msg.member.hasPermission('MANAGE_MESSAGES')) return msg.reply('You don\'t have permssion to warn.');
const warnReason = args.slice(1);
args.shift();
const warnReason = args.join(' ');
const victim = msg.mentions.members.first();
msg.channel.send(`Successfully logged ${victim.user.tag}'s warning.`);