edit_automod_rule
Update an existing Discord AutoModeration rule's name or enabled state by rule ID, with an optional audit log reason.
Instructions
Edit an existing AutoModeration rule (name or toggle enabled state)
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": {
"ruleId": "<ruleId>"
},
"name": "edit_automod_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name | |
| reason | No | Audit log reason | |
| ruleId | Yes | Rule ID to edit | |
| enabled | No | Enable or disable rule | |
| guildId | No | Discord server ID (defaults to DISCORD_GUILD_ID) |