From 96e0b5f85c6baaf5077d91c31b89aacacd02a22e Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 28 Mar 2022 01:41:32 +0300 Subject: [PATCH] wordwatcher setting --- .../components/settings/moderation/WordWatcher.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/structure/components/settings/moderation/WordWatcher.js b/src/structure/components/settings/moderation/WordWatcher.js index b77406e..cba7689 100644 --- a/src/structure/components/settings/moderation/WordWatcher.js +++ b/src/structure/components/settings/moderation/WordWatcher.js @@ -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`',