Discord error 40006: Feature temporarily disabled server-side
Last verified against Discord Developer Docs - Opcodes and status codes
This feature has been temporarily disabled server-sideWhat error 40006 means
The endpoint or feature you called is switched off on Discord's side at the moment. Nothing in your request is necessarily wrong; Discord is refusing the action for everyone, or for a group of accounts, while the feature is disabled. This can happen during incidents, staged rollouts, or when Discord pauses a feature for maintenance.
Discord does not list which features can be disabled this way or for how long, so there is no specific setting to change. The useful response is to confirm the failure is not local, back off, and retry later.
If only your bot gets 40006 while the same action works in the Discord client, compare the request your library sends with the current documentation; a deprecated route or an old API version can also explain a refusal. An outdated version produces 50041 rather than this code.
What it looks like
{
"message": "This feature has been temporarily disabled server-side",
"code": 40006
}Why it happens
- Discord has paused the feature during an incident or maintenance
- Feature is in a staged rollout and not enabled for this account or guild
- Bot is calling an endpoint Discord is in the process of retiring
How to fix Discord error 40006
- 1Check Discord's status page for an active incident
- 2Retry with exponential backoff instead of failing the whole command
- 3Confirm the route and API version match current documentation
- 4Tell the user the feature is temporarily unavailable rather than showing a stack trace
How to stop it recurring
Wrap optional features so a 40006 degrades that one feature instead of crashing the handler, and log it with a timestamp so you can correlate with status incidents. Retries belong in a background queue with backoff, not in the user-facing request.
Official reference: Discord Developer Docs - Opcodes and status codes. See all Discord error codes or the Discord limits and quotas.
Related codes
- 130000: API resource overloadedAPI resource is currently overloaded. Try again a little later
- 40062: Service resource is being rate limitedService resource is being rate limited
- 50041: Invalid API version providedInvalid API version provided
- 0: General errorGeneral error (such as a malformed request body, amongst other things)
Error 40006 - quick answers
What does Discord error 40006 mean?
The endpoint or feature you called is switched off on Discord's side at the moment. Nothing in your request is necessarily wrong; Discord is refusing the action for everyone, or for a group of accounts, while the feature is disabled. This can happen during incidents, staged rollouts, or when Discord pauses a feature for maintenance.
How do I fix Discord error 40006?
1. Check Discord's status page for an active incident 2. Retry with exponential backoff instead of failing the whole command 3. Confirm the route and API version match current documentation 4. Tell the user the feature is temporarily unavailable rather than showing a stack trace
Can I retry after error 40006?
Yes - this is a retryable condition. Back off (start around one second and double on each attempt, with jitter) and watch for a retry-after hint from the platform before resending.
Stop debugging Discord by hand
Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.