From af546631f7f45d636f315e4884c166ece0fbb8bb Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 18 Jan 2022 16:39:10 +0200 Subject: [PATCH] missing fields --- .../en_us/general/en_us_general.lang | 5 +++++ .../en_us/settings/en_us_moderation.lang | 3 --- .../settings/administration/IgnoreChannels.js | 16 ++++++++++++++++ .../settings/moderation/WordFilterSetting.js | 2 +- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/localization/en_us/general/en_us_general.lang b/src/localization/en_us/general/en_us_general.lang index b791952..d137ec3 100644 --- a/src/localization/en_us/general/en_us_general.lang +++ b/src/localization/en_us/general/en_us_general.lang @@ -4,6 +4,8 @@ Command Options [GENERAL_CHOICES] Choices + +// Setting field names [GENERAL_STATUS] 》 Status @@ -13,6 +15,9 @@ Choices [GENERAL_ROLES] 》 Roles +[GENERAL_BYPASS] +》 Bypass roles + [GENERAL_CHANNEL] 》 Channel diff --git a/src/localization/en_us/settings/en_us_moderation.lang b/src/localization/en_us/settings/en_us_moderation.lang index 5df46af..7ee3f33 100644 --- a/src/localization/en_us/settings/en_us_moderation.lang +++ b/src/localization/en_us/settings/en_us_moderation.lang @@ -5,9 +5,6 @@ [SETTING_FILTER_IGNORED] 》 Ignored channels -[SETTING_FILTER_BYPASS] -》 Role bypass - [SETTING_FILTER_ACTIONS] 》 Actions diff --git a/src/structure/components/settings/administration/IgnoreChannels.js b/src/structure/components/settings/administration/IgnoreChannels.js index fe34bda..2ee14af 100644 --- a/src/structure/components/settings/administration/IgnoreChannels.js +++ b/src/structure/components/settings/administration/IgnoreChannels.js @@ -61,6 +61,22 @@ class IgnoreSetting extends Setting { } + fields(guild) { + + const setting = guild._settings[this.name]; + return [ + { + name: 'GENERAL_CHANNELS', + value: setting.channels.map((c) => `<#${c}>`).join(', ') || '`N/A`' + }, + { + name: 'GENERAL_BYPASS', + value: setting.bypass.map((r) => `<@&${r}>`).join(', ') || '`N/A`' + } + ]; + + } + } module.exports = IgnoreSetting; \ No newline at end of file diff --git a/src/structure/components/settings/moderation/WordFilterSetting.js b/src/structure/components/settings/moderation/WordFilterSetting.js index 6deb92e..0698a53 100644 --- a/src/structure/components/settings/moderation/WordFilterSetting.js +++ b/src/structure/components/settings/moderation/WordFilterSetting.js @@ -224,7 +224,7 @@ class WordFilterSetting extends FilterSetting { inline: true }, { - name: 'SETTING_FILTER_BYPASS', + name: 'GENERAL_BYPASS', value: setting.bypass.map((role) => `<@&${role}>`).join(', ') || '`N/A`', inline: true },