You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attachment spam limits to 6 attachments but messages can contain 10 attachments #3425
"""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.
We will not support messages with more than 6 attachments still, as anything over that just generates huge screen filling messages that don't really have a place in Python Discord.
However, for the first instance of a user posting >6 attachments we should not mute, just delete & notify the user (all should be possible through the existing filter system).
If a user then continues to post attachments within a certain cooldown period (let's say 2 minutes), we should then apply the filter in the regular fashion and apply a tempmute.
when all attachments are media image files, they should not be deleted
if the user sends more than 6 of other kinds, they should be warned but not immediately timed out.
This has been discussed internally amongst Moderators and the specified behaviour above maintaining the max 6 attachments (but improving the UX for users caught by the filter) is what has been decided.
In future (and in separate issues), maybe we should think about:
Auto-suppressing embeds when a message has loads of them, because it is just as noisy
Lowering the attachment limit to something lower (e.g. 3) if the attachments are non-images.
For this specific issue though, the specification here is what should be implemented.
I'd like to take a crack at this if it's still open. My understanding of the spec is: on first offense (>6 attachments within the interval), delete the message and notify the user without an infraction. If they repeat within ~2 minutes, apply the normal tempmute. Does that match what's intended before I start?
Activity
DragonSenseiGuy commentedon Oct 30, 2025
If this gets approved I can work on it if @onerandomusername is not interested.
jb3 commentedon Nov 1, 2025
I am changing the scope slightly of this.
We will not support messages with more than 6 attachments still, as anything over that just generates huge screen filling messages that don't really have a place in Python Discord.
However, for the first instance of a user posting >6 attachments we should not mute, just delete & notify the user (all should be possible through the existing filter system).
If a user then continues to post attachments within a certain cooldown period (let's say 2 minutes), we should then apply the filter in the regular fashion and apply a tempmute.
onerandomusername commentedon Nov 1, 2025
I see no harm in allowing 10 attachments when we allow three embeds from websites:
The ten (media) attachments is smaller than 3 embeds from GitHub. This should be considered when moderating 10 attachments on messages.
jb3 commentedon Nov 1, 2025
Not all attachments form media galleries.
onerandomusername commentedon Nov 1, 2025
We could filter and run introspection on the types of attachments and allow 10 in specific cases.
onerandomusername commentedon Nov 1, 2025
Six file embeds is still longer than a gallery of ten images. Which would still be allowed.
onerandomusername commentedon Nov 1, 2025
Specifically, how I should have made this issue:
when all attachments are media image files, they should not be deleted
if the user sends more than 6 of other kinds, they should be warned but not immediately timed out.
jb3 commentedon Nov 1, 2025
This has been discussed internally amongst Moderators and the specified behaviour above maintaining the max 6 attachments (but improving the UX for users caught by the filter) is what has been decided.
In future (and in separate issues), maybe we should think about:
For this specific issue though, the specification here is what should be implemented.
oliveman-au commentedon May 3, 2026
I'd like to take a crack at this if it's still open. My understanding of the spec is: on first offense (>6 attachments within the interval), delete the message and notify the user without an infraction. If they repeat within ~2 minutes, apply the normal tempmute. Does that match what's intended before I start?
DragonSenseiGuy commentedon May 3, 2026
yup joe could you assign this to them please?