From 5fee526f8b163eb7252ca8dd5c1cc2bb0f3832b4 Mon Sep 17 00:00:00 2001 From: JandereDev Date: Wed, 13 Oct 2021 22:11:52 +0200 Subject: [PATCH] G --- src/bot/modules/antispam.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bot/modules/antispam.ts b/src/bot/modules/antispam.ts index 5db9459..3682c4d 100644 --- a/src/bot/modules/antispam.ts +++ b/src/bot/modules/antispam.ts @@ -67,8 +67,7 @@ async function antispam(message: Message): Promise { _id: ulid(), createdBy: null, date: Date.now(), - reason: `Automatic moderation rule triggered: More than ${rule.max_msg} messages per ${rule.timeframe} seconds.` - + (rule.message ?? ''), + reason: `Automatic moderation rule triggered: More than ${rule.max_msg} messages per ${rule.timeframe} seconds.`, server: message.channel?.server_id, type: InfractionType.Automatic, user: message.author_id,