Safety
Automod
Stop spam, invite links, mass mentions and banned words automatically.
On this page
Automod deletes rule-breaking messages the moment they're posted: invite links, spam, mass mentions, banned words and more. It can warn or time out the member, and times out people who keep at it. Automod is set up entirely in the dashboard and starts off, so nothing is deleted until you turn it on.
Set it up
- Open the dashboard, pick your server, then Automod.
- Turn on the rules you want and pick an Action for each (see rules below).
- Add your Banned words and phrases, one per line.
- Under Exemptions, choose roles and channels automod should leave alone.
- Under Notifications, choose how members are told and, optionally, an Automod log channel for your team.
- Click Save, then turn the module on with the switch at the top of the page.
How it works
Rules
| Rule | What it catches | Starts |
|---|---|---|
| Invite links | Discord invites to other servers. Invites to your own server are fine. | On, delete and warn |
| Links | Any web link, except domains you allow. | Off |
| Mass mentions | One message mentioning more than 5 different members or roles (you can change the number). | On, delete and warn |
| Excessive caps | Messages of at least 15 letters where 70% or more are capitals. | Off |
| Message spam | More than 5 messages within 5 seconds. | On, delete and warn |
| Repeated messages | The same message 3 times within 30 seconds. | On, delete |
| Banned words | Words and phrases from your list. | On, delete and warn |
Every number in the table can be changed. Links starts with Discord, Tenor and Giphy allowed; add your own domains to the list. Edited messages are checked too, so nobody can sneak a link in afterwards.
Banned words
Banned words match whole words, ignoring case, accents, stretched letters (hellooo) and common number swaps (h3llo). Phrases with spaces work too. Put one word or phrase per line, or separate them with commas.
Actions
Each rule has its own action:
- Delete the message.
- Delete and warn: also records a warning case in the member's moderation history.
- Delete and time out: also times the member out, for 10 minutes unless you change it.
Warnings and timeouts are recorded as moderation cases with Keystone as the moderator, and posted to the mod log if Moderation has one. If someone trips the same rule again within 10 seconds, the extra messages are deleted quietly without another case.
Repeat offenders
With Repeat offenders on, a member who breaks rules 3 times within 10 minutes is timed out for 10 minutes. You can change both numbers.
Exemptions
Bots and webhooks are never checked. By default, staff with Manage Messages or Administrator in the channel aren't either (Exempt staff). You can also exempt roles, and channels along with their threads.
Notifications
Tell the member with a short notice in the channel that deletes itself after a few seconds, a DM, or nothing. The Automod log channel gets a short report for every hit: who, where, what matched and what Keystone did.
Permissions
Keystone needs Manage Messages to delete messages and Timeout Members to time people out. Its role must also be above the member's highest role to time them out, and members with Administrator can't be timed out. For the log channel it needs View Channel, Send Messages and Embed Links there.
Limits
| Per server | Free | Premium |
|---|---|---|
| Automod banned words | 50 | 500 |
Troubleshooting
My private log channel isn't in the list
Discord only shows Keystone the channels it's allowed to see, so a private channel appears in the dashboard's channel lists once Keystone can view it. Open the channel's settings in Discord, go to Permissions, add Keystone (or its role) and allow View Channel, Send Messages and Embed Links, then reload the dashboard page (it can take up to 30 seconds to show up).
Messages aren't being deleted
Check that the Automod module is on, the rule is on, and Keystone has Manage Messages in that channel. Also check the member isn't exempt: staff with Manage Messages are skipped unless you turn Exempt staff off, which also means you can't test automod on yourself as an admin.
“Couldn't time out” in the automod log
Keystone needs Timeout Members, and its role must be above the member's highest role. Members with Administrator can't be timed out at all.
A link I want to allow keeps getting deleted
Add its domain, like youtube.com, to Allowed domains under Links. Subdomains such as www.youtube.com are covered too.
I can't add more banned words
You've reached your plan's limit. Remove some, or upgrade to Premium for more.