This commit is contained in:
Erik 2022-07-26 01:03:12 +03:00 committed by GitHub
parent 6adf87d0d4
commit dabfa8d8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -350,6 +350,9 @@ __Letting this prompt time out will make the action a **generic** one.__
The following words are already tied to an action and were skipped. The following words are already tied to an action and were skipped.
`{words}` `{words}`
[SETTING_WORDFILTER_INVALID]
No valid values supplied.
// Linkfilter // Linkfilter
[SETTING_LINKFILTER_HELP] [SETTING_LINKFILTER_HELP]
Configure the link filtering behaviour for your server. Configure the link filtering behaviour for your server.

View File

@ -147,7 +147,7 @@ class WordFilterSetting extends FilterSetting {
if (!params.length) { if (!params.length) {
if (['roles', 'channels'].includes(list.value)) if (['roles', 'channels'].includes(list.value))
return { error: true, index: 'RESOLVE_FAIL', params: { type: list === 'bypass' ? 'roles' : 'channels' } }; return { error: true, index: 'RESOLVE_FAIL', params: { type: list === 'bypass' ? 'roles' : 'channels' } };
return { error: true, index }; return { error: true, index: 'SETTING_WORDFILTER_INVALID' };
} }
const { modified } = this[method](setting[list], params.map((o) => o.id || o)); const { modified } = this[method](setting[list], params.map((o) => o.id || o));
return { index, params: { updated: list, modified: params.filter((o) => modified.includes(o.id || o)).map((o) => o.name || o).join('__, __'), invalid: invalid.join('`, `') } }; return { index, params: { updated: list, modified: params.filter((o) => modified.includes(o.id || o)).map((o) => o.name || o).join('__, __'), invalid: invalid.join('`, `') } };