Customizing and Authorizing Bot

Our bot is created it’s time to give permissions and define scopes of the bot. Permission refers to what our bot can do on the server, for example, sending messages. Scope refers to what role the bot will perform.

Step 1: Click on OAuth2 and click on URL Generator you will see multiple checkboxes referring to different scopes. For this bot, we are going to use bot only scope click on Bot checkbox.

Scopes of Bot

Step 2: Next checkboxes are permission for our box. We are going to give this bot permission to send and reply to messages so check all the boxes related to that. You can always change these permissions later and generate a new URL.

Note: If you want to code slash commands, make sure to choose applications.commands as well in Step 1.

Give Permissions to bot

Step 3: Scroll down and you can see a URL generated for the bot click on the copy to copy this URL.

generated URL

Step 4: Paste copied URL in a new tab here we are going to authorize our bot with the server. Choose the server we created earlier and click on continue.

Give Server name

Step 5: Here you will see the permissions of the bot. If you want you can edit these, click on Authorise

Manage Permissions

Step 6: Verify that you are a human with a captcha and the bot should be authorized now. 

Verify Captcha

Step 7: Go to the server and you can see the name of the bot appearing in the list of offline people.

Bot appearing in Server

Creating a Discord Bot in Python

If you are familiar with online communities and if you are a part of one or you own one, you must have heard about discord and in discord, you may have seen bots managing those communities. So in this article, we are going to set up our discord developer portal account and will create a discord bot. A minimal bot with basic functionalities and if you want you can always extend the functionalities of this bot according to your needs.

Similar Reads

What is Discord?

Discord is a free chat app that provides different chat functionalities such as voice, video, and text chat it is used by millions of people around the world for professional as well as fun use....

What are Discord Bots?

Discord is used by more than 10 million people daily using these stats we can clearly see people’s interest in communities and discord is growing. People are exploring and joining new servers....

How to Make a Discord Bot in Python

First and foremost we need to have a dedicated server where we are going to setup our bot. This bot will work on a single channel on this server. To create a server you need to have a discord account if you don’t have one yet you can create one by simply going to https://discord.com/....

Creating a Channel on Server

Now we need to create a channel where this bot will be active, this bot will only respond on this channel....

Creating A Bot

Now that we have our account with the server ready we can go ahead and create our first bot on the discord developer portal. The discord developer portal is a platform provided by discord for people who wants to extend the capabilities of discord and use it for building more cool stuff, one of the examples is creating bots....

Customizing and Authorizing Bot

Our bot is created it’s time to give permissions and define scopes of the bot. Permission refers to what our bot can do on the server, for example, sending messages. Scope refers to what role the bot will perform....

Writing Code for Bot

In this section, we are going to write python code for our discord bot....