Discord error 200000: Message was blocked by automatic moderation
Last verified against Discord Developer Docs - Opcodes and status codes
Message was blocked by automatic moderationWhat error 200000 means
The server's AutoMod rules matched the message content your bot tried to send and blocked it. AutoMod is configured per guild by its moderators (keyword lists, regex patterns, spam heuristics, mention spam, Discord's preset profanity/slur lists) and it applies to bots too unless the rule exempts the bot's role or the channel. Your message never reached the channel.
For bots that echo user input (quote bots, translation bots, AI chat bots, relays from other platforms), this is routine: a user types something that trips a keyword rule and the bot's restatement gets blocked while the user's original may or may not have been. For bots that send only their own content, the usual cause is a keyword rule that is broader than intended, or a link rule blocking URLs your bot includes.
This is a policy outcome, not an API fault. Retrying produces the same result.
What it looks like
{
"message": "Message was blocked by automatic moderation",
"code": 200000
}Why it happens
- Guild AutoMod keyword or regex rule matches the content
- Mention spam rule triggered by a message mentioning many users or roles
- Bot's role and the channel are not in the rule's exempt lists
- Relayed or AI-generated content containing a flagged term
How to fix Discord error 200000
- 1Ask the server admin to add the bot's role (or the channel) to the AutoMod rule's exemptions in Server Settings > AutoMod
- 2Catch 200000 and notify the invoking user ephemerally that the content was blocked by server rules
- 3If your bot has Manage Guild, GET /guilds/{id}/auto-moderation/rules to inspect the rules and explain which one likely matched
- 4For relays, consider filtering or redacting known-blocked terms before sending
- 5Do not retry automatically
How to stop it recurring
Document AutoMod exemption as part of your setup guide for servers with strict filters. Handle the blocked case gracefully in every send path that forwards user-generated content, and surface the reason to the user so they do not assume the bot is broken.
AutoMod rule budgets (six keyword rules per guild, a thousand keywords per rule) are on the Discord limits page, which helps when you inspect a server's rules to explain a block. Title-field blocks surface separately as 200001, and platform-level link blocking as 240000.
Official reference: Discord Developer Docs - Opcodes and status codes. See all Discord error codes or the Discord limits and quotas.
Related codes
Error 200000 - quick answers
What does Discord error 200000 mean?
The server's AutoMod rules matched the message content your bot tried to send and blocked it. AutoMod is configured per guild by its moderators (keyword lists, regex patterns, spam heuristics, mention spam, Discord's preset profanity/slur lists) and it applies to bots too unless the rule exempts the bot's role or the channel. Your message never reached the channel.
How do I fix Discord error 200000?
1. Ask the server admin to add the bot's role (or the channel) to the AutoMod rule's exemptions in Server Settings > AutoMod 2. Catch 200000 and notify the invoking user ephemerally that the content was blocked by server rules 3. If your bot has Manage Guild, GET /guilds/{id}/auto-moderation/rules to inspect the rules and explain which one likely matched 4. For relays, consider filtering or redacting known-blocked terms before sending 5. Do not retry automatically
Stop debugging Discord by hand
Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.