Discord Bot Creation with Correct Permission

Posted on January 5, 2024

Regardless of bot server creation framework you’re using, you always have to go to the Discord developer portal, and to be honest, the permission control is a bit confusing. Here is the correct solution as of Jan 5, 2024.

First, you go to Discord Developer Portal and create a new application over there, and access its page. That’s pretty nothing but easy.

Then you don’t copy the application id or pubkey in the General Information tab, but go to the Bot tab, reset its token and copy it for your application token.

Now before you go to OAuth2 tab, you have one more thing to do. This was bugging me for a few minutes.

Enable the 3 Privileged Gateway Intents in the Bot tab. These are necessary for bots to access…well, presence, server members list, and message content, like it exactly says. I personally found this “solution” from this snippit on the discord-haskell repository.

Now you can safely go to “OAuth2/URL Generator” page and generate your url with your selection of permissions and use the url for bot invitation.