How to Create a Bot in Discord

Learn how to create a bot in Discord step by step. Follow our guide to add a new level of interactivity to your server. Start coding your bot now.

How to Create a Bot in Discord

In this article, we’ll tell you how to create a bot in Discord! Have you already figured out all the basic features of the messenger? It’s time to move to the next level!

A little bit about Discord bots

Without bots, Discord wouldn’t be Discord — a convenient app with many features. Assistants on servers not only expand the messenger’s functionality, but also perform routine tasks. Here are just a few of the abilities of different robot assistants:

  • Moderating communication between people;
  • Adding entertainment content to the server – memes, games, music;
  • Welcoming new members and banning unwanted ones;
  • Writing texts;
  • Creating surveys and organizing sweepstakes.

But the coolest thing is that any user can create their own assistant! You can use it for small servers with friends, or you can grow a large project – a popular assistant that hundreds of thousands of servers will add to themselves. Read the article further and learn how to make your own bot in Discord.

How to create a bot

A bot for Discord is created through the developer portal — Discord Developer Portal. Here you can also create your own applications and games. Modest interface, but wide possibilities! Are you ready to figure out how to create your own bot in Discord? Let’s go!

Here is a link to the portal:  https://discord.com/developers/applications . You can also find it yourself: enter “discord developer portal” in the browser search bar and press ” Enter” – the desired site will be the first in the search results.

  • Go to the Discord Developer Portal and log in to your account – it corresponds to your account in the messenger.
  • Go to the Applicationstab on the left.
  • On the right, click on the blue button “ New application”.
  • In the window that appears, enter the name of your application, check the box next to agreeing to the rules and click “ Create”.
  • Go to the ” Bot”tab on the left.
  • Click ” Add bot”.
  • Confirm the action by clicking on the blue button ” Yes, do it”.

Looks like we figured out how to make a bot for Discord? Let’s see what else is out there!

Completion of creation

See Clyde, the Discord logo? Click on it to add an assistant avatar! On your computer, select the image and click ” Open” . Agree, it’s more interesting already? Also here, to the right of the avatar, is the coveted bot token, which will come in handy for programming the assistant!

Now enter and create a name for your robot assistant.

A little lower in the same window you will see switches for different options. For example, will your assistant be public or will you be the only one adding it to the servers? Switch the switch to the desired position!

At the very bottom of the page, mark the permissions for the bot. They are divided into three blocks:

  • General: administration, viewing the audit log, managing roles, channels and emojis, removing server members;
  • Text: sending messages, attaching files and links, reading history, adding reactions;
  • Voice: entering a voice channel, muting participants, etc.

In the ” App testers” tab on the left, you can add users who will help you develop the assistant. Just enter the user tag in the input field and click ” Invite” .

We have told you about the most important parameters when creating a bot. There are many more different settings on the portal – we are sure that you will be interested in understanding all this!

How to add a bot to the server

We’ve already learned how to create your own bot in Discord, now we need to find out how to add it to your server. Don’t leave the developer portal!

  • Go to the ” OAuth2″tab on the left.
  • Then go to the URL Generatorsection .
  • In the ” Scopes”block , check the box next to ” Bot” .
  • In the ” Bot permissions”block , check the permissions for your bot that you just made in Discord.
  • At the bottom in the line “ Generated URL”a link will be generated, click on the button “ Copy” .
  • Open a new tab in your browser and paste the copied link into the address bar. Remember how to do this? Right-click and select ” Paste”or simply press ” Ctrl+V” .
  • The familiar window for adding a robot assistant will open! You encounter this window when adding other assistants to your server.
  • Click on the arrow to open the drop-down list and select the server you want to add an assistant to.
  • Click ” Continue”.
  • In the new window ,revoke some permissions if necessary and click Authorize .
  • Complete the captcha and wait for authorization confirmation.

Open your Discord server and make sure your new helper appears in the list of members.

We figured out how to make your own bot in Discord and add it to the server! Now you can essentially develop your project, it is very interesting to dive into the development of robot assistants.