AutoMod Rules
Create automated moderation rules that detect and act on unwanted messages. Configure a trigger type, choose an action, set advanced exemptions and cooldowns, and simulate the rule against sample messages before going live.
Open AutoMod →
Set up automated moderation rules that detect and act on unwanted messages. Configure triggers, actions, exemptions, and cooldowns, and simulate before going live.
What is this?
AutoMod is a set of automatic rules that catch unwanted messages before a moderator has to. Each rule has a trigger (the pattern it watches for) and an action (delete, warn, mute, or post a notice). You build rules one at a time and preview each one against a sample message before going live.
Why you might want it
If you spend any time deleting obvious spam, link bombs, or repeated emoji walls by hand, AutoMod hands that work back to you. Most servers cover their basics with three rules. You stay in charge. The rule decides what counts as a match; you decide what happens when it matches.
What this is for
Catching the spam, slurs, link bombs, and emoji walls your moderators are deleting by hand, and handing the work back to the bot. Each rule pairs one trigger with one action and is simulator-tested before going live.
Before you start
- ·The setup wizard has run on this guild (AutoMod is unlocked once setup completes).
- ·The bot has the Manage Messages permission in any channel you want rules to fire in.
- ·For mute, strike, warn, or ban actions: your guild is on Pro. Free tier only allows the
deleteaction. - ·You have a rough idea what you want to catch (e.g. "block slurs", "no invite links", "mention spam").
5-minute setup
- 1Open the dashboard → Arkanis AutoMod and click Create Rule.
- 2Pick one trigger card (word filter, regex, spam, mention spam, caps, link, invite, duplicate, emoji, attachment).
- 3Pick one action (delete, warn, mute, strike, or ban). Set severity / duration as needed.
- 4Set the rule to Log Only mode for now. Save.
- 5Open Simulate Rule, paste a positive sample and a negative sample, confirm both behave correctly.
- 6Flip the rule to Live. It now acts on real messages.
Common failure modes
- Rule never fires on real messagesThe target channel is on the Exempt Channels list, the offender holds an Exempt Role, or the bot is missing the message_content intent. Check the rule's Advanced tab first, then confirm in Settings → Bot Health that intents are enabled.
- False positives on legitimate messagesWord boundary is off (set it on so “assassin” doesn't match “ass”), or you need an allowlist word. Use the simulator with the false-positive text and tune until it returns “No match”.
- Save fails with "this action requires Pro"You picked mute, strike, warn, or ban on a free-tier guild. Either switch the action to
deleteor upgrade. Existing Pro-tier rules degrade todeleteif the guild loses Pro; the message is still removed but no enforcement record is created. - Rule fires constantly and floods the log channelPattern is too loose. Switch the rule to Log Only, watch the matches in the Event Log for an hour, tighten the pattern, then flip back to Live. Per-user and per-channel cooldowns also dampen noisy rules.
Filter Types
AutoMod ships with ten trigger types plus a dedicated Actions reference. Each has its own deep-dive page with full configuration, examples, and known pitfalls. The summary below introduces each one; the step-by-step rule builder is documented further down this page.
Block slurs, harassment, and custom banned words with preset packages.
Match arbitrary regex patterns with ReDoS protection.
Message-rate velocity across a sliding time window.
Catch mention-bombs and mass-ping raids in a single message.
Flag messages with excessive uppercase characters.
Grapheme-aware emoji counting. Flags, families, and custom emoji.
Catch repeated copy-paste messages from the same user.
Block or allowlist URLs by domain.
Block Discord server invites posted in your server.
Flag messages that attach too many files at once.
What delete, warn, mute, strike, and ban actually do when a rule fires.
Getting Started
Open Arkanis AutoMod
From the dashboard sidebar, click Arkanis AutoMod. The page lists every rule with status (Enabled/Disabled), trigger type, action, mode, and recent-match count. If you haven't built any rules yet, an empty state offers a prompt to create your first.
Understand Rule Limits
The number of rules you can create depends on your plan:
Up to 3 rules. Enough for most small servers to cover the essentials.
Unlimited rules with the full action suite for larger communities.
1. Basic Info
Click Create Rule
Click Create Rule at the top of the AutoMod page to open the rule builder. The builder is organized into four sections: Basic, Trigger Type, Action Type, and Advanced.
Fill in the Basics
- Rule Name — Max 100 characters. Use something descriptive like "Block Slurs" or "No Invite Links"
- Description — Max 500 characters. Optional context for other staff
- Priority — Numeric. Higher priority rules evaluate first when a message could match multiple
- Mode — Log Only records matches without taking action, Live applies the configured action
- Enabled — Toggle on/off without deleting the rule
2. Trigger Type
Pick one of ten trigger cards. Each trigger has its own configuration options shown inline after selection.
Word Filter
Matches messages that contain banned words or phrases. Options:
- Preset packages — Hate speech, Harassment, Sexual explicit, NSFW, Profanity. Check any combination
- Allow swearing toggle to keep general profanity but block targeted hate
- NSFW server toggle to relax content rules appropriately
- Custom words list — Add your own words or phrases
Regex Filter
Matches a list of regular expressions. A Test Input field lets you paste a sample message and see if it matches before saving, which catches broken patterns early.
Spam Detection
Fires when a user sends too many messages too quickly.
- Max messages — Default 5
- Window seconds — Default 10
Mention Spam
Triggers when a single message contains too many mentions.
- Max mentions — Default 5
Caps Spam
Flags messages that are mostly uppercase.
- Min length — Default 8 (messages shorter than this are ignored)
- Max percent — Default 70 (the percentage of characters that can be uppercase before the rule fires)
Link Filter
Controls which URLs are allowed.
- Block all links toggle for a total blackout
- Blocked domains list for specific bans
- Allowed domains list for an allowlist-only approach
Invite Filter
Blocks all Discord invite links. No additional configuration needed.
Duplicate Message
Triggers when a user repeats the same message too often.
- Max duplicates — Default 3
- Window size — Default 10 messages
Emoji Spam
Fires when a message contains too many emojis.
- Max emojis — Default 10
Attachment Spam
Fires when a message contains too many file attachments.
- Max attachments — Default 5
3. Action Type
Choose what happens when the rule matches. Pick one of five actions.
Delete
Removes the offending message.
- Reason — Optional text logged for context
Warn
Sends a formal warning to the user and records it.
- Reason code — Structured category
- Reason text — Human-readable explanation shown to the user
Mute
Times out the user for a configurable duration.
- Duration (minutes)
- Reason text
Strike
Issues a strike through the enforcement system.
- Category
- Severity — Minor or Major
- Reason text
Ban
Bans the user. Use sparingly and pair with Log Only first to catch false positives.
- Category
- Reason
- Discord ban toggle — On = also bans from Discord itself, Off = records in Arkanis only
4. Advanced Options
Exemptions
Prevent the rule from firing against certain users or in certain places:
- Exempt Roles — Multi-select. Members with any of these roles are skipped
- Exempt Channels — Multi-select. The rule never fires in these channels
Matching Behavior
- Case Sensitive toggle — Default off (e.g., "SPAM" matches "spam")
- Word Boundary toggle (word filter only) — On matches whole words, Off matches substrings
- Allowlist Words — Words that prevent a rule from firing even if other patterns match
Notifications & Cooldowns
- DM on Trigger toggle — Send the user a private message explaining the rule
- Per-User Cooldown (seconds) — Minimum gap between triggers for the same user
- Per-Channel Cooldown (seconds) — Minimum gap between triggers in the same channel
Simulate a Rule
Test Before Going Live
On the AutoMod page, click Simulate Rule. The simulator lets you test a rule end-to-end without affecting real users.
Run a Simulation
- Select the rule from the dropdown
- Enter a test message into the input field
- Click Simulate
The result shows either "Matched" with a breakdown of what action would have been taken, or "No match" with the reason. Try both positive and negative samples to catch false positives early.
Managing Rules
Enable, Disable, or Edit
Every rule card on the AutoMod page has a quick Enabled toggle so you can pause a rule without deleting it. Click a card to open the builder again with every setting pre-populated. Changes apply immediately; no restart or re-deploy needed.
Monitor Performance
Each card shows the number of recent matches and the last-fire timestamp. Use these to spot noisy rules (firing too often) and silent rules (never firing, probably misconfigured).