Skip to content

Getting The Bot Token And More

Anjan Nair edited this page Sep 27, 2020 · 5 revisions

GETTING THE TOKEN

  • For hosting a Discord bot you should obviously have a Discord account. Now go to the developer page and create a New Application


Create Application page


  • Give it a good and unique name. Think carefully because this will be your bot name.


Application name page

  • On the left sidebar navigate to Bot and create a new bot


Side bar


  • This should how your page should now look (minus the bot USERNAME of course)


Bot created


  • Scroll down and tick the Administrator permissions. If you select the Administrator by default the others are included too hence they can't be selected. You can alternatively select particular permissions for the bot too but I prefer doing this


Admin perms


  • From the side bar head to OAuth2 and select the SCOPES as bot


Scope selected


  • Scroll down and in BOT PERMISSIONS once again select Administrator


Final invite


  • Important: A link is generated at the top. Copy and paste that in a new window. This link invites the bot to the intended server. Select the server and authorize it.

Some stuff to remember:

  1. Your token is yours and unique do not under any circumstance share it with others. It should be treated like a password. This even means you should not upload your token, no matter privately or publicly, on GitHub.

  2. Do not violate Discords terms and conditions as this may get you and your bot banned from Discord.

  3. If your token gets leaked or is somehow public just head back to the developer page and Regenerate the token.

THIS COVERS EVERYTHING IN DETAIL