missing fields

This commit is contained in:
Erik 2022-01-18 16:39:10 +02:00
parent 83a3c0b456
commit af546631f7
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589
4 changed files with 22 additions and 4 deletions

View File

@ -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

View File

@ -5,9 +5,6 @@
[SETTING_FILTER_IGNORED]
》 Ignored channels
[SETTING_FILTER_BYPASS]
》 Role bypass
[SETTING_FILTER_ACTIONS]
》 Actions

View File

@ -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;

View File

@ -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
},