Skip to main content
Automod is a friendlier front end for Discord’s built-in AutoMod rules. Everything you configure here becomes a real rule in your server’s settings — which means Discord blocks the message, not the bot. That distinction matters:
  • Blocking happens before the message is posted. Nobody sees it, not even for a second.
  • It works even if mira is offline, rate-limited or missing permissions.
  • The rules are visible and editable in Server Settings → AutoMod, so nothing is hidden from you.
Requires Manage Server.

Word filter

automod add accepts plain words and regular expressions — aliases create, regex. Matching is case-insensitive and catches common letter substitutions, so blocking nitro also catches n1tr0.

Allowing exceptions

Substrings on the ignore list bypass the filter, which is how you stop a blocked word from catching an innocent one containing it. Aliases: allow, exclude.

Invite filter

Blocks messages containing Discord invite links. Aliases: discord, inv.
Two different exemptions, worth keeping straight: ignore allows a specific invite string everywhere, whitelist allows a role or channel to post any invite.
Blocks all URLs. Aliases: websites, link, url. It has the same ignore / whitelist split as invites:
Blocking every link outright is heavy-handed for most servers. A better shape is usually: links allowed generally, #general whitelisted, and the honeypot catching the scam links that matter.

Mention limits

Blocks messages containing more than the given number of mentions. Aliases: mention, pings, ping.
Turns on Discord’s own mention-raid protection, which handles the coordinated version. Same whitelist commands: !automod mentions whitelist @Staff.

Suspected spam

Enables Discord’s machine-learning spam classifier. It catches the generic patterns — advertising, repeated content, scam phrasing — without you having to write rules for them. Aliases: suspected, sus.

Music file filter

The odd one out: this one is enforced by mira rather than Discord, because Discord can’t inspect attachments.
Blocks messages containing music files (MP3, WAV, FLAC and similar) or links to them. Built for servers that want listening confined to one channel. Aliases: musicfiles, mp3, audio, files.

The whitelist, generally

Most rules share a whitelist shape. The bare form applies to the default word filter:
Pass a rule name first to target a specific rule:
Whitelisted roles and channels bypass the rule entirely. Aliases: exempt, wl.

Command reference

Every command requires Manage Server. Group alias: filter.
Discord limits how many AutoMod rules a server can have. If a command fails with a rule-limit error, remove an unused rule in Server Settings → AutoMod and try again.