This commit is contained in:
JandereDev 2021-10-13 22:11:52 +02:00
parent 65471712f7
commit 5fee526f8b
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A

View file

@ -67,8 +67,7 @@ async function antispam(message: Message): Promise<boolean> {
_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,