automod_modify_rule
Change an existing Discord AutoMod rule's keyword list, actions, or enabled status. Pass only fields to update; trigger type is immutable.
Instructions
Purpose: Update an AutoMod rule's settings. Pass only fields you want to change.
When to use:
Tweak keyword list, change actions, toggle enabled.
Note: trigger_type is immutable - to change it, delete and recreate.
Returns: {id, name, trigger_type, enabled}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| actions | No | ||
| enabled | No | ||
| rule_id | Yes | Rule to modify | |
| guild_id | Yes | Guild containing the rule | |
| event_type | No | AutoMod event type (1 MESSAGE_SEND, 2 MEMBER_UPDATE) | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) | |
| exempt_roles | No | ||
| exempt_channels | No | ||
| trigger_metadata | No | AutoMod trigger metadata (fields valid per trigger_type) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||