From bec6fde1f990d6ece8953a57982fed53df58673b Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 12:41:08 -0500 Subject: Fixed --- commands/warn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/warn.js') diff --git a/commands/warn.js b/commands/warn.js index 9fc2272..1d19f2d 100644 --- a/commands/warn.js +++ b/commands/warn.js @@ -1,7 +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); - const victim = msg.mentions.users.first(); + const victim = msg.mentions.memebrs.first(); msg.channel.send(`Successfully logged ${victim.user.tag}'s warning.`); -- cgit v1.2.3