From 0373c3b0bc15094fde68c894950c5b3fbdf0f4e6 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:14:28 +1100 Subject: [PATCH] Fix automod preventing autoresponses from responding to non-staff --- src/events/messageCreate.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 16f3a6d..40d3ea2 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -50,7 +50,10 @@ export default class MessageCreate { }; for (const rule of Object.values(automodRules)) { - if (await rule.check()) await rule.action(); + if (!automodded && await rule.check()) { + await rule.action(); + break; + } } }; if (message.guildId === client.config.dcServer.id && !automodded) client.userLevels.messageIncremental(message.author.id);