Skip to content

Attachment spam limits to 6 attachments but messages can contain 10 attachments #3425

@onerandomusername

Description

@onerandomusername

Example: https://discord.com/channels/267624335836053506/463035268514185226/1431497703447199774

This leads to some false positives when a gallery of 7 or more attachments are sent on a message.

class ExtraAttachmentsSettings(BaseModel):
"""Extra settings for when to trigger the antispam rule."""
interval_description: ClassVar[str] = (
"Look for rule violations in messages from the last `interval` number of seconds."
)
threshold_description: ClassVar[str] = "Maximum number of attachments before the filter is triggered."
interval: int = 10
threshold: int = 6

It would be great to support full 10 attachments before triggering this rule so a single message with 10 attachments doesn't trigger the antispam rule.

Metadata

Metadata

Labels

a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)l: 1 - intermediatep: 3 - lowLow Prioritystatus: approvedThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions