Skip to main content

AutoMod

Actions in the category "AutoMod".

Create AutoMod rule​

Add a new AutoMod rule to a server.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
NameTextYesThe rule's display name. Length: 1 to 100 characters.
Event typeAutoMod eventYesWhen the rule should be evaluated.
Trigger typeAutoMod triggerYesWhat kind of content the rule reacts to.
Trigger metadataAutoMod trigger metadataNoConfiguration values for the trigger (keywords, regex, presets, etc.).
ActionsList of AutoMod actionYesWhat AutoMod does when the rule fires.
EnabledYes/NoNoWhether the rule is active. Default: Yes.
Exempt rolesList of RoleNoRoles that bypass this rule (up to 20). Maximum items: 20.
Exempt channelsList of Server channelNoChannels where this rule does not apply (up to 50). Maximum items: 50.
Audit log reasonTextNoReason shown in the audit log. Maximum length: 512 characters.

Outputs

NameTypeDetails
RuleAutoMod ruleThe 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

NameTypeRequiredDetails
TypeAutoMod action typeYesWhat AutoMod does: block the message, send an alert, timeout the member, or block their interactions.
Custom messageTextNoOptional message shown to the member when their message is blocked (Block Message only). Maximum length: 150 characters.
Alert channelText channelNoChannel that receives the alert (Send Alert Message only).
Timeout durationDurationNoHow long the member is timed out (Timeout only).

Outputs

NameTypeDetails
ActionAutoMod actionThe 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

NameTypeRequiredDetails
ActionsList of AutoMod actionNoThe action list to extend (leave empty to start a new list). Maximum items: 3.
ActionAutoMod actionYesThe AutoMod action to append (from Create AutoMod action).

Outputs

NameTypeDetails
ActionsList of AutoMod actionThe updated action list.

Update AutoMod rule​

Edit an existing AutoMod rule.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
RuleAutoMod ruleYesThe AutoMod rule to update.
NameTextNoThe new rule name. Length: 1 to 100 characters.
Event typeAutoMod eventNoThe new event type.
Trigger metadataAutoMod trigger metadataNoThe new trigger configuration.
ActionsList of AutoMod actionNoThe new actions to take when the rule fires.
EnabledYes/NoNoWhether the rule is active.
Exempt rolesList of RoleNoRoles that bypass this rule (up to 20). Maximum items: 20.
Exempt channelsList of Server channelNoChannels where this rule does not apply (up to 50). Maximum items: 50.
Audit log reasonTextNoReason shown in the audit log. Maximum length: 512 characters.

Outputs

NameTypeDetails
RuleAutoMod ruleThe updated AutoMod rule.

Delete AutoMod rule​

Permanently delete an AutoMod rule.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
RuleAutoMod ruleYesThe rule to delete.
Audit log reasonTextNoReason 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

NameTypeRequiredDetails
Rule IDDiscord IDYesThe Discord ID of the rule.

Outputs

NameTypeDetails
RuleAutoMod ruleThe rule, or empty if not found. May be empty.

Fetch AutoMod rules​

List all AutoMod rules in a server.

Required permissions: Manage server.

Outputs

NameTypeDetails
RulesList of AutoMod ruleAll AutoMod rules in the server.
Need more help?
Can't find what you're looking for? Our team is happy to help.