diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 12:41:08 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 12:41:08 -0500 |
| commit | bec6fde1f990d6ece8953a57982fed53df58673b (patch) | |
| tree | 6524c1cf0cdab44895ed7af20d0d9eebebeedea4 /commands/warn.js | |
| parent | fed743c6f589bed63470ec3904486619c4ded00e (diff) | |
| download | PokeBot-bec6fde1f990d6ece8953a57982fed53df58673b.tar.gz PokeBot-bec6fde1f990d6ece8953a57982fed53df58673b.tar.bz2 PokeBot-bec6fde1f990d6ece8953a57982fed53df58673b.zip | |
Fixed
Diffstat (limited to 'commands/warn.js')
| -rw-r--r-- | commands/warn.js | 2 |
1 files changed, 1 insertions, 1 deletions
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.`); |
