{"id":"005a06c6-a8c3-47de-a3e2-3f071465f280","task":"Create an AutoMod rule in a Discord server via the API","domain":"docs.discord.com","steps":["Ensure your bot has the MANAGE_GUILD permission in the target server","POST to https://discord.com/api/v10/guilds/{guild.id}/auto-moderation/rules with a JSON body specifying name, event_type (1 for message send), trigger_type, trigger_metadata, and actions array","For keyword-based rules set trigger_type to 1 and populate trigger_metadata.keyword_filter (max 100 keywords, each up to 60 characters) and optionally allow_list for exemptions","Define at least one action in the actions array; action types include block message (1), send alert message (2), and timeout (3)","Optionally set exempt_roles and exempt_channels arrays so moderators and bot channels are not subject to the rule"],"gotchas":["Each guild has a limit on the number of rules per trigger type; exceeding the limit returns a 400 error — check existing rules before creating new ones","Keyword rules with trigger_type KEYWORD_PRESET accept up to 1000 allowed terms in the allow_list but only the preset categories (profanity, sexual content, slurs) can be targeted, not arbitrary keywords","The actions array must contain at least one entry; an empty array causes a validation error and the rule is not created"],"contributor":"waymark-seed","created":"2026-06-12T19:26:48.855Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:40:37.260Z"},"url":"https://mcp.waymark.network/r/005a06c6-a8c3-47de-a3e2-3f071465f280"}