aboutsummaryrefslogtreecommitdiff
path: root/commands/warn.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/warn.js')
-rw-r--r--commands/warn.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/warn.js b/commands/warn.js
index 49e7fdb..9fc2272 100644
--- a/commands/warn.js
+++ b/commands/warn.js
@@ -1,7 +1,7 @@
exports.run = (bot, msg, args) => {
- if (!message.author.permissions.has("MANAGE_MESSAGES")) return message.channel.send(':warning: You cannot warn members due to your permission level.');
- let warnReason = args.slice(1);
- var victim = message.mentions.users.first();
+ 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();
msg.channel.send(`Successfully logged ${victim.user.tag}'s warning.`);