ManageGuild

This commit is contained in:
Jonny_Bro (Nikita) 2023-07-03 21:04:21 +05:00
parent 9f0d8007e8
commit ac641f9c28
9 changed files with 9 additions and 9 deletions

View file

@ -16,7 +16,7 @@ class Automod extends BaseCommand {
"ru": client.translate("administration/automod:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/automod:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addBooleanOption(option => option.setName("state") .addBooleanOption(option => option.setName("state")
.setDescription(client.translate("common:STATE")) .setDescription(client.translate("common:STATE"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Autorole extends BaseCommand {
"ru": client.translate("administration/autorole:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/autorole:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addBooleanOption(option => option.setName("state") .addBooleanOption(option => option.setName("state")
.setDescription(client.translate("common:STATE")) .setDescription(client.translate("common:STATE"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Config extends BaseCommand {
"ru": client.translate("administration/config:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/config:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addSubcommand(subcommand => subcommand.setName("list") .addSubcommand(subcommand => subcommand.setName("list")
.setDescription(client.translate("administration/config:LIST")) .setDescription(client.translate("administration/config:LIST"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Goodbye extends BaseCommand {
"ru": client.translate("administration/goodbye:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/goodbye:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addSubcommand(subcommand => subcommand.setName("test") .addSubcommand(subcommand => subcommand.setName("test")
.setDescription(client.translate("administration/goodbye:TEST")) .setDescription(client.translate("administration/goodbye:TEST"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Selectroles extends BaseCommand {
"ru": client.translate("administration/selectroles:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/selectroles:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addSubcommand(subcommand => subcommand.setName("message") .addSubcommand(subcommand => subcommand.setName("message")
.setDescription(client.translate("administration/selectroles:MESSAGE")) .setDescription(client.translate("administration/selectroles:MESSAGE"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Set extends BaseCommand {
"ru": client.translate("administration/set:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/set:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addStringOption(option => option.setName("type") .addStringOption(option => option.setName("type")
.setDescription(client.translate("owner/debug:TYPE")) .setDescription(client.translate("owner/debug:TYPE"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Setlang extends BaseCommand {
"ru": client.translate("administration/setlang:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/setlang:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addStringOption(option => option.setName("language") .addStringOption(option => option.setName("language")
.setDescription(client.translate("common:LANGUAGE")) .setDescription(client.translate("common:LANGUAGE"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Stealemoji extends BaseCommand {
"ru": client.translate("administration/stealemoji:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/stealemoji:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addStringOption(option => option.setName("emoji") .addStringOption(option => option.setName("emoji")
.setDescription(client.translate("common:EMOJI")) .setDescription(client.translate("common:EMOJI"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({

View file

@ -16,7 +16,7 @@ class Welcome extends BaseCommand {
"ru": client.translate("administration/welcome:DESCRIPTION", null, "ru-RU"), "ru": client.translate("administration/welcome:DESCRIPTION", null, "ru-RU"),
}) })
.setDMPermission(false) .setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addSubcommand(subcommand => subcommand.setName("test") .addSubcommand(subcommand => subcommand.setName("test")
.setDescription(client.translate("administration/goodbye:TEST")) .setDescription(client.translate("administration/goodbye:TEST"))
.setDescriptionLocalizations({ .setDescriptionLocalizations({