diff --git a/src/automod/AutoModManager.js b/src/automod/AutoModManager.js index 38241fe39..2c3ff7248 100644 --- a/src/automod/AutoModManager.js +++ b/src/automod/AutoModManager.js @@ -217,7 +217,7 @@ export class AutoModManager { const reason = 'Using forbidden words or phrases'; const comment = `(Filter ID: ${word.id})`; await bot.delete(message, reason + ' ' + comment); - if (word.response !== 'disabled' && word.punishment.action !== 'dm') { + if (word.response !== 'disabled' && word.punishment.action.toLowerCase() !== 'dm') { await this.#sendWarning(message, word.getResponse()); } if (word.punishment.action !== 'none') {