DiSky DiSky v5.0.0-b1

AutoMod

guide

Create, edit and watch Discord's AutoMod rules from a script.

automodmoderationdiscord

AutoMod is Discord's built-in filter: a rule looks for something in messages or member profiles and responds on its own, even when the bot is offline. This section covers creating rules, editing the ones a guild already has, and reacting when one fires. You're assumed to have a bot named "my-bot" logged in (see Starting a bot) with Manage Server in the guild, and to know the builder contract.

What a rule is made of

A rule has three parts, each an entity of its own:

Part

Entity

Answers

Trigger

what the rule looks for: keywords, regex patterns, a preset list, mention spam, spam

Responses

what it does: block the message, send an alert, time the member out, block interactions

Rule

its name, when it is checked, who and where it ignores

You build the trigger and the responses first, hand them to an , and read the build result of it to create the rule.

Reading order

  1. Creating a rule: the rule builder, from the minimal rule to a fully configured one.
  2. Triggers and responses: every trigger kind and its options, every response.
  3. Managing rules: listing a guild's rules, editing them live, deleting them, and the execution event.
Was this page helpful?
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.