AutoMod
Actions in the category "AutoMod".
Create AutoMod rule
Add a new AutoMod rule to a server.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Name | Text | Yes | The rule's display name. Length: 1 to 100 characters. |
| Event type | AutoMod event | Yes | When the rule should be evaluated. |
| Trigger type | AutoMod trigger | Yes | What kind of content the rule reacts to. |
| Trigger metadata | AutoMod trigger metadata | No | Configuration values for the trigger (keywords, regex, presets, etc.). |
| Actions | List of AutoMod action | Yes | What AutoMod does when the rule fires. |
| Enabled | Yes/No | No | Whether the rule is active. Default: Yes. |
| Exempt roles | List of Role | No | Roles that bypass this rule (up to 20). Maximum items: 20. |
| Exempt channels | List of Server channel | No | Channels where this rule does not apply (up to 50). Maximum items: 50. |
| Audit log reason | Text | No | Reason shown in the audit log. Maximum length: 512 characters. |
Outputs
| Name | Type | Details |
|---|---|---|
| Rule | AutoMod rule | The created AutoMod rule. |
Create AutoMod action
Build a single AutoMod action value. Use the result in Add AutoMod action, then into an AutoMod rule's actions.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Type | AutoMod action type | Yes | What AutoMod does: block the message, send an alert, timeout the member, or block their interactions. |
| Custom message | Text | No | Optional message shown to the member when their message is blocked (Block Message only). Maximum length: 150 characters. |
| Alert channel | Text channel | No | Channel that receives the alert (Send Alert Message only). |
| Timeout duration | Duration | No | How long the member is timed out (Timeout only). |
Outputs
| Name | Type | Details |
|---|---|---|
| Action | AutoMod action | The constructed AutoMod action. |
Add AutoMod action
Appends an AutoMod action to a list and returns the updated list (max 3 actions). Use the result in an AutoMod rule's actions.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Actions | List of AutoMod action | No | The action list to extend (leave empty to start a new list). Maximum items: 3. |
| Action | AutoMod action | Yes | The AutoMod action to append (from Create AutoMod action). |
Outputs
| Name | Type | Details |
|---|---|---|
| Actions | List of AutoMod action | The updated action list. |
Update AutoMod rule
Edit an existing AutoMod rule.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Rule | AutoMod rule | Yes | The AutoMod rule to update. |
| Name | Text | No | The new rule name. Length: 1 to 100 characters. |
| Event type | AutoMod event | No | The new event type. |
| Trigger metadata | AutoMod trigger metadata | No | The new trigger configuration. |
| Actions | List of AutoMod action | No | The new actions to take when the rule fires. |
| Enabled | Yes/No | No | Whether the rule is active. |
| Exempt roles | List of Role | No | Roles that bypass this rule (up to 20). Maximum items: 20. |
| Exempt channels | List of Server channel | No | Channels where this rule does not apply (up to 50). Maximum items: 50. |
| Audit log reason | Text | No | Reason shown in the audit log. Maximum length: 512 characters. |
Outputs
| Name | Type | Details |
|---|---|---|
| Rule | AutoMod rule | The updated AutoMod rule. |
Delete AutoMod rule
Permanently delete an AutoMod rule.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Rule | AutoMod rule | Yes | The rule to delete. |
| Audit log reason | Text | No | Reason shown in the audit log. Maximum length: 512 characters. |
Fetch AutoMod rule by ID
Look up a single AutoMod rule by its ID.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Rule ID | Discord ID | Yes | The Discord ID of the rule. |
Outputs
| Name | Type | Details |
|---|---|---|
| Rule | AutoMod rule | The rule, or empty if not found. May be empty. |
Fetch AutoMod rules
List all AutoMod rules in a server.
Required permissions: Manage server.
Outputs
| Name | Type | Details |
|---|---|---|
| Rules | List of AutoMod rule | All AutoMod rules in the server. |
Need more help?
Can't find what you're looking for? Our team is happy to help.