Actions193
- Application Actions
- Application Command Actions
- Application Role Connection Metadata Actions
- Audit Log Actions
- Auto Moderation Actions
- Channel Actions
- Get
- Modify
- Delete
- Trigger Typing
- Get Pinned Messages
- Unpin Message
- Create Reaction
- Delete Own Reaction
- Get Reactions
- Delete All Reactions
- Delete All Reactions For Emoji
- Bulk Delete Messages
- Crosspost Message
- Edit Channel Permissions
- Delete Channel Permission
- Get Channel Invites
- Create Channel Invite
- Follow Announcement Channel
- Group DM Add Recipient
- Group DM Remove Recipient
- Start Thread From Message
- Start Thread Without Message
- Start Thread In Forum Channel
- Join Thread
- Add Thread Member
- Leave Thread
- Get Thread Member
- List Thread Members
- List Public Archived Threads
- List Private Archived Threads
- List Joined Private Archived Threads
- Emoji Actions
- Entitlement Actions
- Guild Actions
- Get
- Modify
- Create
- Get Preview
- Delete
- Modify Channel Positions
- List Active Threads
- Get Bans
- Get Ban
- Remove Ban
- Get Prune Count
- Begin Prune
- Get Voice Regions
- Get Invites
- Get Integrations
- Delete Integration
- Get Widget Settings
- Modify Widget
- Get Widget
- Get Vanity URL
- Get Widget Image
- Get Welcome Screen
- Modify Welcome Screen
- Get Onboarding
- Modify Onboarding
- Modify Current User Voice State
- Modify User Voice State
- Search Members
- List Members
- Guild Scheduled Event Actions
- Guild Template Actions
- Interaction Response Actions
- Invite Actions
- Lobby Actions
- Member Actions
- Message Actions
- Poll Actions
- Role Actions
- SKU Actions
- Soundboard Actions
- Stage Instance Actions
- Sticker Actions
- Subscription Actions
- User Actions
- Voice Actions
- Webhook Actions
Auto Moderation → Modify Rule
AI-generatedSummary
Updates an existing Discord auto moderation rule in a guild. Supply the guild and rule IDs, then set any rule fields you want to change; the operation sends the update using the configured bot token.
Inputs
- Authentication — Select Bot Token (the default) for server moderation.
- Guild (required) — Guild snowflake ID containing the rule.
- Rule (required) — Auto moderation rule snowflake ID to modify.
- Name — Rule name to set.
- Event Type — Set the event type to Message Send or Member Update. Unchanged omits this field from the request.
- Trigger Metadata — Raw JSON trigger_metadata object; leave empty to omit it. Its shape depends on the rule's trigger type.
- Actions Collection — Add guided actions: Block Message (optional custom message), Send Alert Message (channel ID required), Timeout (duration in seconds), or Block Member Interaction.
- Actions — Raw JSON array of Discord actions; leave empty to omit. The UI description says guided actions are appended after raw actions.
- Enabled — Set whether the rule is enabled.
- Exempt Role IDs — Comma-separated role IDs to exempt.
- Exempt Channel IDs — Comma-separated channel IDs to exempt.
- Audit Log Reason — Reason recorded in the guild audit log; Discord limits the header to 512 characters.
- Request Options — Optional batching, TLS certificate validation, proxy, and request timeout settings.
Output shape
A single Discord auto moderation rule record.
The operation modifies the rule through Discord's API; fields not supplied are omitted from the update. Exact response fields are not specified in the provided source view.