Auto-mod and anti-raid

How to configure auto-mod checks, punishments and escalation

Each auto-mod check watches for one kind of problem, such as message spam or too many mentions. You decide when it triggers and what happens, and Moderation Bot can step up the punishment each time the same member offends again.

Steps

  1. Open a check

    Go to Auto-mod → Checks. Checks are grouped into tiles, each with a short summary of its limit and actions. Click a tile to open its editor.

  2. Set when it triggers

    Under "When it triggers", set the limits, for example how many messages are allowed in a window. Every field explains itself and is checked as you type.

  3. Build the action chain

    Under "What happens", add steps. The first step runs on the first offence, the second on the next, and so on.

  4. Save

    Press Save changes. Turning the check on or off is saved along with your other edits.

What auto-mod can check

Message checks cover message rate, duplicate messages, repeated text, mention caps, invite links, link caps, the domain blocklist, keyword lists, zalgo text, spoilers, line breaks, emoji, capital letters, numbers and message length. File checks cover attachment count, size and type, and stickers.

There are also honeypot channels, where any message is acted on, and embed-only channels, where messages must carry an image, file or embed. Pick the channels for these two with "Active in these channels". Member checks look at account age, messages from new members, duplicate messages between new members and profile names.

The quick switch on a tile turns a check on with safe defaults. Checks with no safe default show "Needs setup" and open the editor instead.

Actions you can use

The dashboard only offers actions the bot has permission to carry out.

  • Delete message, or Soft delete, which also DMs the member a copy so they can fix it.
  • Warn, which records a warning in their history.
  • Timeout, up to 28 days.
  • Kick, or Ban with the option to delete up to 7 days of their messages.
  • Add role, such as a muted or quarantine role.
  • Send a DM with your own message.
  • Defer to mods, which takes no action and posts an alert in your mod log channel.

Escalation, cooldown and the escalation window

A member's offences are remembered for the escalation window. Each offence inside it moves them to the next step. After the last step, every further offence repeats the last step until the window resets.

The action cooldown stops one burst of spam being punished several times. After acting on a member, the same check waits before acting on them again, though offending messages are still deleted. Change both timings under Advanced on the Overview page.

Test a message

The Checks page has a Test a message box. Type or paste some text to see which of your text checks would act on it. Nothing is sent. Rate, duplicate, mention, invite, file and new-member checks cannot be tested this way.

Common questions

Can auto-mod re-check edited messages?

Yes. Turn on Edit re-checks in the Advanced settings on the auto-mod Overview page.

Why did an action fail?

Discord refused it, usually because the bot is missing a permission or its role is below the member's. The Auto-mod log shows failed actions, and the Overview links straight to them.

Related guides

Give your mods a break.

Add the bot, and auto-mod starts protecting your server straight away. Free to add.