diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-02-24 11:53:56 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-02-24 11:53:56 -0500 |
| commit | 475c32b41ca001875204a8d4638154b4ec4eaa67 (patch) | |
| tree | 7341f49aeab8fa8c0d660d5587d320c3a06a810f /commands | |
| parent | b126596020d1a87541e3dd0a3c99913491a5c7f2 (diff) | |
| download | PokeBot-475c32b41ca001875204a8d4638154b4ec4eaa67.tar.gz PokeBot-475c32b41ca001875204a8d4638154b4ec4eaa67.tar.bz2 PokeBot-475c32b41ca001875204a8d4638154b4ec4eaa67.zip | |
trey = Dimb (maybe i fucked it even more)
Diffstat (limited to 'commands')
| -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 0e9e966..ba3c3ea 100644 --- a/commands/warn.js +++ b/commands/warn.js @@ -1,5 +1,5 @@ exports.run = (bot, msg, args) => { - if (!message.member.permissions.has("MANAGE_MESSAGES")) return message.channel.send(':warning: You cannot warn members due to your permission level.'); + 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(); |
