Skip to content

Commit

Permalink
Temporarily remove the "Update Permissions" button
Browse files Browse the repository at this point in the history
  • Loading branch information
carlodrift committed Nov 16, 2024
1 parent c212af9 commit 7bc2956
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ public List<Button> getButtons(Skoice plugin, String menuId) {
break;

case "permissions":
buttons.add(Button.link(plugin.getBot().getInviteUrl(),
plugin.getBot().getLang().getMessage("button-label.update-permissions"))
.withEmoji(MenuEmoji.CARD_BOX.get()));
// TODO: Only the bot owner should have this button.
// buttons.add(Button.link(plugin.getBot().getInviteUrl(),
// plugin.getBot().getLang().getMessage("button-label.update-permissions"))
// .withEmoji(MenuEmoji.CARD_BOX.get()));
break;

case "login-notification":
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/DA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Tilladelser"
description: "For at fungere korrekt, skal din bot have tilladelse til `Administrator` på din Discord server."
description: "For at fungere korrekt, skal din bot have tilladelse til `Administrator` på din Discord server. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/DE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Berechtigungen"
description: "Um richtig zu funktionieren, muss dein Bot die Berechtigung `Administrator` auf deinem Discord-Server haben."
description: "Um richtig zu funktionieren, muss dein Bot die Berechtigung `Administrator` auf deinem Discord-Server haben. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Sprachchat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/EN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Permissions"
description: "In order to work properly, your bot must have the `Administrator` permission on your Discord server."
description: "In order to work properly, your bot must have the `Administrator` permission on your Discord server. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Permisos"
description: "Para funcionar correctamente, tu bot debe tener el permiso de `Administrador` en tu servidor de Discord."
description: "Para funcionar correctamente, tu bot debe tener el permiso de `Administrador` en tu servidor de Discord. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Chat de voz"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/FR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Votre serveur Discord exige que l'authentification à deux facteurs soit activée sur le compte du propriétaire du bot. Configurez-la ou désactivez cette exigence dans les paramètres du serveur en suivant ce chemin : `Modération › Configuration de sécurité › (Permissions ›) Exiger une A2F pour les actions des modérateurs`."
permissions:
title: "Permissions"
description: "Afin de fonctionner correctement, votre bot doit avoir la permission `Administrateur` sur votre serveur Discord."
description: "Afin de fonctionner correctement, votre bot doit avoir la permission `Administrateur` sur votre serveur Discord. Pour ce faire, ajoutez au bot un rôle avec la permission `Administrateur`."
voice-chat:
title: "Chat vocal"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/IT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Permessi"
description: "Per funzionare correttamente, il tuo bot deve avere il permesso `Administrator` sul tuo server di Discord."
description: "Per funzionare correttamente, il tuo bot deve avere il permesso `Administrator` sul tuo server di Discord. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/JA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "権限"
description: "正常に動作させるために、Discordサーバー上でbotに `管理者` 権限が必要です。"
description: "正常に動作させるために、Discordサーバー上でbotに `管理者` 権限が必要です。To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/NO.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Tillatelser"
description: "For å fungere skikkelig, må boten din ha `Administrator` tillatelse på Discord-serveren din."
description: "For å fungere skikkelig, må boten din ha `Administrator` tillatelse på Discord-serveren din. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/PL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Uprawnienia"
description: "Aby działął poprawnie, twój bot musi mieć uprawnienie `Administrator` na twoim serwerze Discord."
description: "Aby działął poprawnie, twój bot musi mieć uprawnienie `Administrator` na twoim serwerze Discord. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/PT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Permissões"
description: "Para que funcione corretamente, seu bot deve ter a permissão de `Administrador` no seu servidor do Discord."
description: "Para que funcione corretamente, seu bot deve ter a permissão de `Administrador` no seu servidor do Discord. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/RU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Your Discord server requires the bot owner's account to have two-factor authentication enabled. Set it up or disable this requirement in server settings by following this path: `Moderation › Safety Setup › (Permissions ›) Require 2FA for moderator actions`."
permissions:
title: "Разрешения"
description: "Чтобы корректно работать, ваш бот должен иметь разрешение `Администратор` на вашем сервере Discord."
description: "Чтобы корректно работать, ваш бот должен иметь разрешение `Администратор` на вашем сервере Discord. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Voice Chat"
range:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/discord/lang/TR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ menu:
description: "Discord sunucun bot sahibi olan hesabın iki aşamalı doğrulamayı açmasını gerektiriyor. 2AD'yi açın veya bu zorunluluğu sunucu ayarlarından `Moderasyon > Güvenlik Kurulumu > Moderatör eylemleri için İki Aşamalı Doğrulama gerektir` yolunu izleyerek kapatın."
permissions:
title: "İzinler"
description: "Botunuzun düzgün çalışması için Discord sunucunuzda \"Yönetici\" iznine ihtiyacı var."
description: "Botunuzun düzgün çalışması için Discord sunucunuzda \"Yönetici\" iznine ihtiyacı var. To do this, add a role with `Administrator` permission to the bot."
voice-chat:
title: "Sesli sohbet"
range:
Expand Down

0 comments on commit 7bc2956

Please sign in to comment.