How to Add a Bot to Discord

This is a quick walkthrough of how to add a bot to a Discord server.

  • Visit discord.com/developers/applications and log in with your Discord account.
  • After logging in, click "New Application" at the top right: Discord ui with arrow to new application
  • Enter the name of your application, I'll use the name test-bot here: Discord create application ui with test-bot in name field
  • Click on the "Bot" option in the left sidebar to open the Bot creation page: Bot option in sidebar
  • Click on the "Add Bot" option: Add Bot option
  • Next, click on the "OAuth2" option in the left sidebar: OAuth2 option in sidebar
  • Select the bot scope at the bottom of the page: bot option in scopes section
  • Select the permissions you'd like this bot to have: bot permissions panel
  • Copy the generated OAuth url and paste it into your browser: generated OAuth url
  • This brings you to an OAuth page that asks you to select which server to attach your bot tonote that in order to attach the bot to a server, you must have the "Manage Server" permissions in the server server selection interface
  • After you've selected the server you wish you use, click "Continue"
  • This dialogue will give you the opportunity to restrict the permissions that will be granted to the bot on this server. This gives you another chance to modify the specific permissions you'd like the bot to have on this server: bot connection options interface
  • Once you've selected the permissions you'd like to grant, click "Authorize."
  • You will also have to pass a reCAPTCHA at this point.
  • After all of this, the Discord bot should join your server!

Now What?

If you enjoyed this post, I'd love to continue the conversation on Twitter.

Social media not your thing? Shoot me an email: will@willharris.dev

Designed and developed by Will Harris

Built with

Hosted on

Social

Twitter

GitHub

LinkedIn