Open navigation

How to Fix Code Grant Error When Inviting Custom Bot

The Personalized Bot (aka Custom Bot) may give this error when you are finalizing its configuration:

Follow the steps below to resolve this issue.

Step 1:

  1. Visit and select the application. 
  2. Now, go to the Bot tab and turn off the Requires oauth2 code grant under the Authorization Flow (It is the second toggle from the top to the bottom).
  3. Discord will prompt save changes, select yes.

• As a good practice, it is important to also enable all the Privileged Gateway Intents options under the cited steps: Presence Intent, Server members intent and message content intent.
• They are important to make your Personalized Bot work properly.
• Remember to always save the changes.

Step 2:

  1. Press Reset Token (if you have 2FA, it will require the Discord 6 digits code from your Authenticator App).
  2. Copy the code new token and visit
  3. Now, go to the Bot Personalizer tab and paste the token to invite the Personalized Bot (it might require you to disable any Window Popup Blocker in case you don’t see the invitation window — You can find the configuration by visiting your browser settings).

If you have any questions about this, do not hesitate to join our Support Server✌️

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.