From 760466af7b9a9568c60d1301d62bd52a149992c6 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 12:43:35 -0500 Subject: Warn --- commands/warn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/warn.js b/commands/warn.js index 1d19f2d..4bc8f1b 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.memebrs.first(); + const victim = msg.mentions.members.first(); msg.channel.send(`Successfully logged ${victim.user.tag}'s warning.`); @@ -14,7 +14,7 @@ exports.run = (bot, msg, args) => { .addField('Created Account', victim.user.createdAt, true) .addField('Warning Reason', warnReason) .setTimestamp() - .setFooter('Warned by: ' + msg.author.user.tag, msg.author.user.avatarURL) + .setFooter('Warned by: ' + msg.author.tag, msg.author.avatarURL) ); }; -- cgit v1.2.3