wordwatcher setting
This commit is contained in:
parent
3a8d089a6b
commit
96e0b5f85c
@ -59,7 +59,7 @@ class WordWatcher extends FilterSetting {
|
||||
|
||||
if (method && list) {
|
||||
|
||||
if (list.value === 'actions') return this._action(interaction, method.value, setting[list.value]);
|
||||
if (list.value === 'actions') return this._action(interaction, method.value, setting[list.value], { _wordWatcher: true });
|
||||
else if (method.value === 'list') return { error: false, message: setting[list.value].join(', ') };
|
||||
|
||||
const { guild } = interaction;
|
||||
@ -91,6 +91,12 @@ class WordWatcher extends FilterSetting {
|
||||
|
||||
}
|
||||
|
||||
_createTrigger(interaction, action, actionObject, actions) {
|
||||
|
||||
actionObject.trigger = actionObject.type;
|
||||
|
||||
}
|
||||
|
||||
fields(guild) {
|
||||
|
||||
const setting = guild._settings[this.name];
|
||||
@ -107,6 +113,7 @@ class WordWatcher extends FilterSetting {
|
||||
value: setting.channel ? `<#${setting.channel}>` : '`N/A`',
|
||||
inline: true
|
||||
},
|
||||
{ name: '\u200b', value: '\u200b', inline: true },
|
||||
{
|
||||
name: 'GENERAL_IGNORED',
|
||||
value: setting.ignore.map((channel) => `<#${channel}>`).join(', ') || '`N/A`',
|
||||
|
Loading…
Reference in New Issue
Block a user