diff --git a/commands/misc/prefix.js b/commands/misc/prefix.js index 8480e84..0e33320 100644 --- a/commands/misc/prefix.js +++ b/commands/misc/prefix.js @@ -4,7 +4,7 @@ module.exports = { name: 'prefix', description: 'Change the prefix of the bot in this server.', execute({ message, client, args, prefix }) { - if (!message.member.hasPermission('MANAGE_GUILD')) { + if (!message.member.permissions.has('MANAGE_GUILD')) { message.channel.send("You do not have sufficient permissions(MANAGE_GUILD) to change the prefix of this server.") return; }