automod_modify_rule
Update a Discord AutoMod rule's settings by passing only the fields you want to change, such as keywords, actions, or enabled status.
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}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>",
"rule_id": "<rule_id>"
},
"name": "automod_modify_rule"
}
}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 | |||