From 3bda5ef4e34ef86e417564386a9a28d147b84d1f Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Fri, 29 Apr 2022 06:06:00 +0200 Subject: [PATCH] Fix setting prefix not working Guess I forgot to port this shit over to discord.js v13. --- commands/misc/prefix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }