diff --git a/src/localization/en_gb/commands/en_gb_administration.lang b/src/localization/en_gb/commands/en_gb_administration.lang index 3a52bc4..c559b22 100644 --- a/src/localization/en_gb/commands/en_gb_administration.lang +++ b/src/localization/en_gb/commands/en_gb_administration.lang @@ -44,6 +44,9 @@ Global permissions [COMMAND_PERMISSIONS_SHOW_TITLE] Granted permissions +[COMMAND_PERMISSIONS_DESC] +Showing permissions {forin} **{target}** + [COMMAND_PERMISSIONS_NO_PERMS] No permissions granted diff --git a/src/localization/en_gb/general/en_gb_general.lang b/src/localization/en_gb/general/en_gb_general.lang index 360b9c7..8ef3c18 100644 --- a/src/localization/en_gb/general/en_gb_general.lang +++ b/src/localization/en_gb/general/en_gb_general.lang @@ -134,3 +134,11 @@ switch({toggle}) { 'off'; break; } + +[FOR_IN_TOGGLE] +switch({toggle}) { + case true: + 'for'; break; + case false: + 'in'; break; +} \ No newline at end of file diff --git a/src/structure/components/commands/administration/Permissions.js b/src/structure/components/commands/administration/Permissions.js index 24ac6df..9d22a0c 100644 --- a/src/structure/components/commands/administration/Permissions.js +++ b/src/structure/components/commands/administration/Permissions.js @@ -235,6 +235,7 @@ class PermissionsCommand extends SlashCommand { const fields = []; let update = false; + const target = member?.value || role?.value || channel?.value; if (member || role) { @@ -342,6 +343,7 @@ class PermissionsCommand extends SlashCommand { if(!fields.length) return { index: 'COMMAND_PERMISSIONS_NO_PERMS' }; const embed = { + description: target ? interaction.format('COMMAND_PERMISSIONS_DESC', { target: target.tag || target.name || 'any', forin: interaction.format('FOR_IN_TOGGLE', { toggle: target.type === undefined }, { code: true }) }) : '', title: interaction.format('COMMAND_PERMISSIONS_SHOW_TITLE'), fields: [ ] };