aboutsummaryrefslogtreecommitdiff
path: root/commands/warn.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-24 12:45:54 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-24 12:45:54 -0500
commit35bc3c1ab4f0d02c0ef436cf8c4c9d023f5cf183 (patch)
tree8c9c3070dbf433577c8e7b30af3071a0ba11ca52 /commands/warn.js
parent760466af7b9a9568c60d1301d62bd52a149992c6 (diff)
downloadPokeBot-35bc3c1ab4f0d02c0ef436cf8c4c9d023f5cf183.tar.gz
PokeBot-35bc3c1ab4f0d02c0ef436cf8c4c9d023f5cf183.tar.bz2
PokeBot-35bc3c1ab4f0d02c0ef436cf8c4c9d023f5cf183.zip
fix warn reason
Diffstat (limited to 'commands/warn.js')
-rw-r--r--commands/warn.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/warn.js b/commands/warn.js
index 4bc8f1b..09c4c8c 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.`);