wordwatcher setting

This commit is contained in:
Erik 2022-03-28 01:41:32 +03:00
parent 3a8d089a6b
commit 96e0b5f85c
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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`',