From b39a91fcb54c2072ecd2be5d64f8b1374c027a88 Mon Sep 17 00:00:00 2001 From: Julian Vennen Date: Mon, 8 Jul 2024 19:02:07 +0200 Subject: [PATCH] Lowercase --- src/automod/AutoModManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {