missing fields
This commit is contained in:
parent
83a3c0b456
commit
af546631f7
@ -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
|
||||
|
||||
|
@ -5,9 +5,6 @@
|
||||
[SETTING_FILTER_IGNORED]
|
||||
》 Ignored channels
|
||||
|
||||
[SETTING_FILTER_BYPASS]
|
||||
》 Role bypass
|
||||
|
||||
[SETTING_FILTER_ACTIONS]
|
||||
》 Actions
|
||||
|
||||
|
@ -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;
|
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user