- Home
- Server Configuration
- Mastering Discord AutoMod
Mastering Discord AutoMod
import { Tabs, TabItem } from ‘@astrojs/starlight/components’; import DiscordMessage from ‘../../../components/DiscordMessage.astro’;
Discord AutoMod is one of the most powerful and underutilized defense systems built directly into server settings. Unlike external bots, it executes with zero network latency at the Discord API level before an offending message can ever render in public channels.
The 4 Core Native Rules
Section titled “The 4 Core Native Rules”Essential Regex Patterns for Moderation
Section titled “Essential Regex Patterns for Moderation”Configure these regular expressions inside custom AutoMod rules:
Block Unauthorized Discord Invites
Section titled “Block Unauthorized Discord Invites”(discord\.(gg|io|me|li)|discordapp\.com\/invite)\/[a-zA-Z0-9]+Intercepts external server invite links across public channels, except in whitelisted channels (e.g.
#partnerships).
Block Common Nitro Phishing Domains
Section titled “Block Common Nitro Phishing Domains”(discorcl|dlscord|disord|free-nitro|discord-gift|nitro-drop)\.[a-z]{2,}Example AutoMod Alert Notification
Section titled “Example AutoMod Alert Notification”When an account triggers an AutoMod rule, your #automod-alerts channel receives an instant breakdown:
<DiscordMessage author=“Discord AutoMod” bot={true} roleColor=“#5865F2” timestamp=“Today at 4:45 PM” content=“🛡️ Message Blocked: A message violating server policy was prevented from posting.” embed={{ color: “#FEE75C”, title: “Rule Violated: Phishing Link Filter”, fields: [ { name: “Author”, value: “Player_Unknown (ID: 412891823)”, inline: true }, { name: “Channel”, value: “#general-chat”, inline: true }, { name: “Blocked Content”, value: “Get free Discord Nitro here: http://discorcl-gift.ru/claim!”, inline: false }, { name: “Action Taken”, value: “Message blocked + 1 hour preventative timeout”, inline: false } ], footer: “Discord Native AutoMod • Community Defense Engine” }} />