mirror of
https://github.com/UniverseDevGroup/PokeBot.git
synced 2025-01-23 01:42:01 -05:00
fix warn reason
This commit is contained in:
parent
760466af7b
commit
35bc3c1ab4
1 changed files with 2 additions and 1 deletions
|
@ -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.`);
|
||||
|
|
Loading…
Reference in a new issue