Skip to content

automod_modify_rule

Category: automod

Update an AutoMod rule’s settings. Pass only fields you want to change.

  • Tweak keyword list, change actions, toggle enabled.
FieldTypeRequiredDescription
guild_idstringyesGuild containing the rule
rule_idstringyesRule to modify
namestringno
event_typeintegernoAutoMod event type (1 MESSAGE_SEND, 2 MEMBER_UPDATE)
trigger_metadataobjectnoAutoMod trigger metadata (fields valid per trigger_type)
actionsarrayno
enabledbooleanno
exempt_rolesarrayno
exempt_channelsarrayno
audit_reasonstringnoReason recorded in audit log (X-Audit-Log-Reason header)

\{id, name, trigger_type, enabled\}.

FieldTypeRequiredDescription
idstringyesDiscord AutoMod rule ID
namestringyes
trigger_typeintegeryes
enabledbooleanyes
PropertyValue
Read-onlyno
Destructiveno
Idempotentyes
Open-worldyes
Confirmation requiredno

packages/mcp-core/src/tools/automod/modify_rule.ts