missing fields
This commit is contained in:
parent
83a3c0b456
commit
af546631f7
@ -4,6 +4,8 @@ Command Options
|
|||||||
[GENERAL_CHOICES]
|
[GENERAL_CHOICES]
|
||||||
Choices
|
Choices
|
||||||
|
|
||||||
|
|
||||||
|
// Setting field names
|
||||||
[GENERAL_STATUS]
|
[GENERAL_STATUS]
|
||||||
》 Status
|
》 Status
|
||||||
|
|
||||||
@ -13,6 +15,9 @@ Choices
|
|||||||
[GENERAL_ROLES]
|
[GENERAL_ROLES]
|
||||||
》 Roles
|
》 Roles
|
||||||
|
|
||||||
|
[GENERAL_BYPASS]
|
||||||
|
》 Bypass roles
|
||||||
|
|
||||||
[GENERAL_CHANNEL]
|
[GENERAL_CHANNEL]
|
||||||
》 Channel
|
》 Channel
|
||||||
|
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
[SETTING_FILTER_IGNORED]
|
[SETTING_FILTER_IGNORED]
|
||||||
》 Ignored channels
|
》 Ignored channels
|
||||||
|
|
||||||
[SETTING_FILTER_BYPASS]
|
|
||||||
》 Role bypass
|
|
||||||
|
|
||||||
[SETTING_FILTER_ACTIONS]
|
[SETTING_FILTER_ACTIONS]
|
||||||
》 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;
|
module.exports = IgnoreSetting;
|
@ -224,7 +224,7 @@ class WordFilterSetting extends FilterSetting {
|
|||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'SETTING_FILTER_BYPASS',
|
name: 'GENERAL_BYPASS',
|
||||||
value: setting.bypass.map((role) => `<@&${role}>`).join(', ') || '`N/A`',
|
value: setting.bypass.map((role) => `<@&${role}>`).join(', ') || '`N/A`',
|
||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user