automod_list_rules
automod_list_rules
Section titled “automod_list_rules”Category: automod
List all AutoMod rules in a guild.
When to use
Section titled “When to use”- Audit existing rules; find a rule ID before modifying/deleting it.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
guild_id | string | yes | Guild to list AutoMod rules for |
Returns
Section titled “Returns”\{rules:[\{id, name, trigger_type, event_type, enabled\}], count, untrusted_names\}. Rule names are user-authored — wrapped untrusted.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
rules | array | yes | |
count | integer | yes | |
untrusted_names | string | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |