From 35bc3c1ab4f0d02c0ef436cf8c4c9d023f5cf183 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 12:45:54 -0500 Subject: [PATCH] fix warn reason --- commands/warn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.`);