From 5bbc8346c2dc99ed79e97c0dfd38385fa77a50b5 Mon Sep 17 00:00:00 2001 From: Julian Vennen Date: Mon, 8 Jul 2024 18:56:25 +0200 Subject: [PATCH] Don't send public messages for DM punishments --- 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 3b282a13d..38241fe39 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') { + if (word.response !== 'disabled' && word.punishment.action !== 'dm') { await this.#sendWarning(message, word.getResponse()); } if (word.punishment.action !== 'none') {