Skip to content
fylgra Help
Menu

Basics

How to set up Discord AutoMod to block spam and bad words

Marcus · builds Fylgra ·

In short

AutoMod is Discord's built-in filter under Server Settings › AutoMod. It blocks your own words, spam and mass mentions before anyone sees them. It never filters members with "Administrator" or "Manage Server", so test with a second account.

Open in Fylgra

Opens “Add modules” with Moderation on your server. You'll sign in with Discord first.

What this is about

Ad links, swear words, messages with 30 mentions: on an open server, it happens sooner or later. Discord has its own filter for this, AutoMod. It runs on every server and blocks matching messages before anyone sees them.

How to do it in Discord

Only people with Manage Server or Administrator can set up AutoMod, and only on a computer or in the browser.

The rule types

Click your server's name at the top left and choose Server Settings › AutoMod. These rules are available:

The ready-made lists and the spam filter only work in English. For words in other languages, you need your own list.

Create your own word list

  1. Choose Block Custom Words.

  2. Enter the words, up to 1,000 per rule with at most 60 characters each. A * at the start or end also matches parts of words: spam* matches "spamming". Phrases with several words only match when written exactly like that.

  3. Choose what should happen:

    • Block message: the message doesn't appear. With Edit Custom Message you set what the member reads instead, up to 150 characters.

    • Send alert: reports the match in a channel of your choice, for example for your team.

    • Timeout member: up to 4 weeks, only for custom words and mention spam. You need Timeout Members yourself for this.

  4. Under Allow certain roles or channels (optional), exempt up to 20 roles and 50 channels, for example your team or a channel for links. A channel takes its threads with it.

  5. Save the rule.

You set up the other rules the same way.

More protection settings

Under Server Settings › Safety Setup you'll also find DM and Spam Protection and Raid Protection and CAPTCHA.

How to tell it worked

Post a blocked word with your test account. The message doesn't appear, and the account sees Discord's notice. With Send alert, there's an entry in the channel you picked.

Common pitfalls


With Fylgra

The Moderation module builds on AutoMod. If you set a Fylgra rule to Block instantly, Fylgra creates an AutoMod rule for it in Discord, named "Fylgra · …". Discord blocks, and Fylgra then warns, counts steps and keeps the record. The Insults rule comes with a ready-made German and English list. If the module is missing, add it under Modules › Add modules.

You need the Configure moderation permission in Fylgra, and Fylgra needs Manage Server in Discord.

  1. Open Moderation › Rules and click the rule.

  2. Click the pencil next to the Detection section.

  3. Under How to block?, choose Block instantly.

  4. Click Save detection. If the rule is set to On, it then says Active in Discord.

Detection section of a rule with the Block instantly choice and the slots used in Discord

The limits:

More in moderation-sofort-blocken and moderation-sofort-blocken-probleme.

Not working?

Still stuck? Write to me – I'll help. Send a report or email fylgra@fylgra.com

Related articles