Discord API · error code

Discord error 50010: OAuth2 application does not have a bot

ConfigurationHTTP 400Tokens and OAuth2

Last verified against Discord Developer Docs - Opcodes and status codes

What Discord returns
OAuth2 application does not have a bot

What error 50010 means

Your OAuth2 request asked for the bot scope (or another flow that needs a bot user), but the application has no bot user attached. Discord cannot add a bot to a server when there is no bot to add.

Every application in the Developer Portal is a container; the bot user is a separate component of it. This error shows up most often with invite links built for the wrong application ID, for example the ID of a test app or of an OAuth2-only app used for website login, instead of the app that actually has the bot.

It also affects guilds.join: adding a user to a guild requires a bot token from the same application, and the bot must belong to the app that obtained the user's access token.

What it looks like

{
  "message": "OAuth2 application does not have a bot",
  "code": 50010
}

Why it happens

  • Invite URL uses the client ID of an application with no bot user
  • Separate login app and bot app, and the IDs were mixed up
  • Application's bot was removed or never created in the Developer Portal
  • guilds.join flow uses an app that has no bot
  • The invite was generated from the application's Installation settings while the Guild Install scopes do not include bot.

How to fix Discord error 50010

  1. 1Open the application in the Developer Portal and confirm the Bot page shows a bot user
  2. 2Compare the client_id in the invite URL with that application's ID
  3. 3If needed, add a bot to the application and copy the new token
  4. 4Regenerate the invite link from the portal's URL generator and retry
  5. 5In the Developer Portal, open Installation and make sure the Guild Install default scopes include bot (plus applications.commands) before sharing the install link.

How to stop it recurring

Keep application IDs in configuration with clear names (LOGIN_APP_ID, BOT_APP_ID) and generate invite links from code using the bot app's ID. The Discord permissions calculator builds a correct invite URL for a given client ID and permission set. Keep test and production applications clearly labeled in the portal.

Official reference: Discord Developer Docs - Opcodes and status codes. See all Discord error codes or the Discord limits and quotas.

Related codes

Error 50010 - quick answers

What does Discord error 50010 mean?

Your OAuth2 request asked for the bot scope (or another flow that needs a bot user), but the application has no bot user attached. Discord cannot add a bot to a server when there is no bot to add. Every application in the Developer Portal is a container; the bot user is a separate component of it.

How do I fix Discord error 50010?

1. Open the application in the Developer Portal and confirm the Bot page shows a bot user 2. Compare the client_id in the invite URL with that application's ID 3. If needed, add a bot to the application and copy the new token 4. Regenerate the invite link from the portal's URL generator and retry 5. In the Developer Portal, open Installation and make sure the Guild Install default scopes include bot (plus applications.commands ) before sharing the install link.

Stop debugging Discord by hand

Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.