diff --git a/src/localization/en_gb/settings/en_gb_moderation.lang b/src/localization/en_gb/settings/en_gb_moderation.lang index c33e32e..bc8d185 100644 --- a/src/localization/en_gb/settings/en_gb_moderation.lang +++ b/src/localization/en_gb/settings/en_gb_moderation.lang @@ -210,8 +210,8 @@ Configure automatic infraction escalation & other automated moderation behaviour // Grantable [SETTING_GRANTABLE_HELP] -Require anyone without "Manage Roles" permission to only add or remove the specified roles. -This is primarily used for servers who grant the addrole/removerole commands via bot permissions. +Let anyone without "Manage Roles" permission to add or remove the specified roles. +Defines the roles that can be managed with the `/roles add|remove` command. // Invite filter [SETTING_INVITEFILTER_HELP] diff --git a/src/structure/components/settings/moderation/LinkFilter.js b/src/structure/components/settings/moderation/LinkFilter.js index f5d0785..176980d 100644 --- a/src/structure/components/settings/moderation/LinkFilter.js +++ b/src/structure/components/settings/moderation/LinkFilter.js @@ -169,7 +169,7 @@ class LinkFilterSetting extends FilterSetting { return actionObject; } await response.delete(); - if (['cancel', 'abort', 'exit'].includes(action.toLowerCase())) return { + if (['cancel', 'abort', 'exit'].includes(response.content.toLowerCase())) return { error: true, message: interaction.format('ERR_CANCEL') }; diff --git a/src/structure/components/settings/moderation/WordFilter.js b/src/structure/components/settings/moderation/WordFilter.js index 9ba6782..4ec8e90 100644 --- a/src/structure/components/settings/moderation/WordFilter.js +++ b/src/structure/components/settings/moderation/WordFilter.js @@ -170,7 +170,7 @@ class WordFilterSetting extends FilterSetting { return actionObject; } await response.delete(); - if (['cancel', 'abort', 'exit'].includes(action.toLowerCase())) return { + if (['cancel', 'abort', 'exit'].includes(response.content.toLowerCase())) return { error: true, message: interaction.format('ERR_CANCEL') }; diff --git a/src/structure/interfaces/FilterSetting.js b/src/structure/interfaces/FilterSetting.js index 0d5d8f7..8af0c62 100644 --- a/src/structure/interfaces/FilterSetting.js +++ b/src/structure/interfaces/FilterSetting.js @@ -379,7 +379,7 @@ class FilterSetting extends Setting { }), color: 619452 }; - if (embed.fields.length % 3 === 2) embed.fields.push({ + if (embed.fields.length % 3 !== 2) embed.fields.push({ name: '\u200b', value: '\u200b', inline: true