diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-02-24 12:46:07 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-02-24 12:46:07 -0500 |
| commit | fc525dece7d6901063285454399b1ba4c647666e (patch) | |
| tree | a1993579d1279d5eb77e68b6f80ff6d61ba460b3 /commands/warn.js | |
| parent | 3a1047d66f6d56196c6f850527e87f1bb36851bf (diff) | |
| parent | 35bc3c1ab4f0d02c0ef436cf8c4c9d023f5cf183 (diff) | |
| download | PokeBot-fc525dece7d6901063285454399b1ba4c647666e.tar.gz PokeBot-fc525dece7d6901063285454399b1ba4c647666e.tar.bz2 PokeBot-fc525dece7d6901063285454399b1ba4c647666e.zip | |
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'commands/warn.js')
| -rw-r--r-- | commands/warn.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/warn.js b/commands/warn.js index 8aacce8..e16cd08 100644 --- a/commands/warn.js +++ b/commands/warn.js @@ -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.`); |
