bot.settings: fix perm names

This commit is contained in:
Cynthia Foxwell 2022-10-10 19:42:21 -06:00
parent 03feb6d3ae
commit 5e2379919c

View file

@ -177,7 +177,7 @@ settings.callback = async function (msg, line, cmd, key, value) {
} }
case "enable": { case "enable": {
if ( if (
!msg.channel.permissionsOf(msg.author.id).has("manageGuild") && !msg.channel.permissionsOf(msg.author.id).has("MANAGE_GUILD") &&
!hf.config.elevated.includes(msg.author.id) !hf.config.elevated.includes(msg.author.id)
) )
return "You do not have `Manage Server` permissions"; return "You do not have `Manage Server` permissions";
@ -192,7 +192,7 @@ settings.callback = async function (msg, line, cmd, key, value) {
} }
case "disable": { case "disable": {
if ( if (
!msg.channel.permissionsOf(msg.author.id).has("manageGuild") && !msg.channel.permissionsOf(msg.author.id).has("MANAGE_GUILD") &&
!hf.config.elevated.includes(msg.author.id) !hf.config.elevated.includes(msg.author.id)
) )
return "You do not have `Manage Server` permissions"; return "You do not have `Manage Server` permissions";