Fix setting prefix not working
Guess I forgot to port this shit over to discord.js v13.
This commit is contained in:
parent
8093998cda
commit
3bda5ef4e3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue