aboutsummaryrefslogtreecommitdiff
path: root/commands/warn.js
diff options
context:
space:
mode:
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 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.`);