Guide/Protect your server/Discord AutoMod (edge blocking)
Discord AutoMod (edge blocking) — Discord Bot Guide
Mirror your message rules into native Discord AutoMod so spam is blocked before it posts.
Quick answer
Provision and check
!automod links enabled:true block_invites:true
!security automod sync
!security automod status
!security automod clearAsk the guide
Step by step
Discord's own AutoMod runs before a message is delivered, so for message spam nothing — not even the fastest bot — reacts sooner. Sweet mirrors your message rules into native rules prefixed Sweet: so you get both: the edge blocks the obvious, the bot handles heat, context and everything AutoMod cannot see.
!security automod sync create or update the Sweet: rules from your AutoMod config
!security automod presets the same, plus Discord's profanity / slurs / sexual-content presets
!security automod status · !security automod clear| Rule | Created when |
|---|---|
Mention spam | mentions rule on (uses your max; raid-ping protection on) |
Invites | block_invites or block_all (your allow-list domains pass) |
All links | block_all |
Words | words rule on with terms (up to 1000 at the edge) |
Profanity | presets only |
Spam | spam rule on |
Syncing is idempotent: existing rules are edited in place, and a rule for a feature you have since turned off is removed. Discord caps exemptions at 20 roles and 50 channels per rule; the sync warns you when yours exceed that. The bot needs Manage Server. Dashboard: Security → Protection → AutoMod has the same four buttons. Discord AutoMod covers message content only — it never stops a nuke.
Copy and try
Provision and check
!automod links enabled:true block_invites:true
!security automod sync
!security automod status
!security automod clearGood to know
- Discord allows 20 exempt roles and 50 exempt channels per rule; the sync warns when yours exceed that.
- Edge rules block content only; they never see channel or role changes.
Still stuck? Ask in the support server.