aboutsummaryrefslogtreecommitdiff
path: root/commands/nick.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/nick.js')
-rw-r--r--commands/nick.js2
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}\``);