discord_create_automod_rule
Create an AutoMod rule to block harmful messages using keyword filters, regex patterns, or mention limits, with options for alerts, timeouts, and channel or role exemptions.
Instructions
Create a new AutoMod rule with keyword filters, regex patterns, or mention limits.
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": {
"name": "<name>"
},
"name": "discord_create_automod_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Rule name. | |
| guild_id | No | Optional guild ID. | |
| exempt_roles | No | Exempt role IDs/names. | |
| block_message | No | Whether to block offending messages (default: true). | |
| keyword_filter | No | List of banned substrings/wildcards (e.g. ["*scam*", "*free nitro*"]). | |
| regex_patterns | No | List of regex patterns. | |
| exempt_channels | No | Exempt channel IDs/names. | |
| alert_channel_id | No | Optional channel ID to send alerts when rule triggers. | |
| timeout_duration_seconds | No | Optional seconds to timeout user when rule triggers (max: 2419200). |