

This will give your bot a limited set of actions that it can perform. Now scroll down and give your bot the following permissions: View Channels, Send Messages, Read Message History. For more information about the other scopes, visit the Discord OAuth2 Documentation. Only check the bot option because that’s all you want this bot to do. You’ll need to add the scopes in which your bot can function. You need to add the appropriate permissions so your bot can function properly. Next, navigate to the OAuth2 link in the Settings navigation pane on the left-hand side of the screen.

Go ahead and press Yes, do it! to create the bot user. However, this action is irrevocable! Choose wisely. You’ll be prompted with a modal that states Adding a bot user gives your app visible life in Discord. Remember this page you’ll need to come back to it later to retrieve the API Token. Once you’ve done that, a Bot will appear with the optional icon you set up earlier. Now click the Add Bot button to add the bot to your application. Navigate to the Bot link in the Settings navigation pane on the left-hand side of the screen. Now that you’ve set up your application, it’s time to create a bot that is associated with the application. If you did upload an icon, you’d note a dialog box prompting you to save your changes. Click on the Choose a Neat Icon button in the App Icon section of the page. You can choose to add a picture to serve as an icon for your bot. Next, you’ll note a page with information regarding your bot.

For this tutorial, we’ll name ours SammySharkBot.ĭiscord will create your application. Next, add a name for the application in the modal and press the Create button. Bots are bound to applications that is how they function. A Discord application allows you to interact with the Discord API. Sign in to the developer portal and click on the New Application button to start the process. Step 1 - Creating a Bot User For Your Discord Guildīefore you start coding, you need to create and register your bot in the Discord developer portal. Any text editor of your choice, such as Visual Studio Code, Atom, Sublime, or Nano.If you create your own Discord Guild, then you will have the necessary privileges to add a bot. Visit Discord’s Getting Started page to get the app and a free account. A Discord account and a Discord Guild with admin privileges.For specific instructions, you can follow one of our tutorials for installing Python on Windows, Mac, or Linux. Python3 installed on your local machine.You can set this up by following our Ubuntu 20.04 initial server setup guide. One Ubuntu 20.04 server with a sudo non-root user and a firewall.Just know that these terms can be used interchangeably and often are in the official Discord documentation. For this tutorial, we will use the term Guild. They refer to these as both Servers and Guilds, depending on where you are in the documentation. Note: Discord has two different names for their chat/voice rooms.
