Fix setting prefix not working

Guess I forgot to port this shit over to discord.js v13.
This commit is contained in:
SileNce5k 2022-04-29 06:06:00 +02:00
parent 8093998cda
commit 3bda5ef4e3
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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;
}