bot.settings: fix perm names
This commit is contained in:
parent
03feb6d3ae
commit
5e2379919c
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue