diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-07-31 16:38:15 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-07-31 16:38:15 -0400 |
| commit | 60cd96e366487b9a422ecc685b46a2b300c32be1 (patch) | |
| tree | 6e71adf12473ca438f10d7716a27a3f0ffc44c3d /commands/nick.js | |
| parent | 3aa27777a7bd1a9bff798412382db8aad3cbd19a (diff) | |
| download | AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.gz AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.tar.bz2 AleeBot-60cd96e366487b9a422ecc685b46a2b300c32be1.zip | |
Cleanup; Upgraded to Discord.JS v13; More buttons
Diffstat (limited to 'commands/nick.js')
| -rw-r--r-- | commands/nick.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/nick.js b/commands/nick.js index d87d57e..8fcdce7 100644 --- a/commands/nick.js +++ b/commands/nick.js @@ -18,7 +18,7 @@ * * *************************************/ module.exports.run = async (client, message, args) => { - if (!message.guild.member(client.user).hasPermission('MANAGE_NICKNAME')) return message.reply('**ERROR:** I can\'t change nicknames. (Check permissions)'); + if (!message.guild.members.cache.get(client.user.id).permissions.has('MANAGE_NICKNAME')) return message.reply('**ERROR:** I can\'t change nicknames. (Check permissions)'); const nick = args.join(' '); message.member.setNickname(nick); message.channel.send(`Alright! I changed your nickname to \`${nick}\``); |
