Protection · Step
Count their messages lately
Count this message and the member's other messages in the last few seconds, and say whether it's over a limit. Counted in memory, so a restart starts again.
automod.message_rate
In a flow
“When a button is clicked, count their messages lately.”
Message posted → Count their messages lately (5 in 10 s) → If Over limit → Time out member.
What it does
Count this message and the member's other messages in the last few seconds, and say whether it's over a limit. Counted in memory, so a restart starts again. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 2 values later steps can use. Find it under Protection in the palette.
When to use it
Use it to keep the server safe: count this message and the member's other messages in the last few seconds, and say whether it's over a limit. Counted in memory, so a restart starts again.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Who Member
-
Whose messages to count, like the one who posted.
What goes there: Type it in the side panel, or wire in a member. e.g. @Alex
If it's empty: Optional. Left empty and unwired, the step runs without it.
Connects fromAccept applicationApplication infoAsk a questionAsk follow-upBoard as emojiCall the next in the queueCase createdCheck for a lineand 87 more
- Within (seconds) Number
-
The window, like 10.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 10.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more
- Limit Number
-
How many messages are fine in that time, like 5.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 5.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more
Values it gives
- Count Number
-
How many times they did it in the window, this time included. e.g. 4
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more
- Over limit Yes / no
-
True when the count is above the limit. e.g. true
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more