DEV Community

DevMirza
DevMirza

Posted on

How to Code your own Discord Bot | PART 1| Getting started.

Hello Guys! 😍
I am DevMirza and today I am going to told u how to create a Discord Bot.

Welcome to the part 1 of coding a Discord Bot. I am writing this article with my experience, so let's get started.

Creating application

  • First goto Discord Developer Portal and create a new Application and click on bot section and select Add-a-Bot.
  • Now Next Step is to add the bot to the Server.
  • Click on Oauth2 section and scroll down and select "bot". This will generate a link to add the bot to server. Click on copy and add the bot to server.
  • And the bot is on your server.

Note: The Token is important thing to get your bot online don't share it with anyone unless you trust him.

Getting things ready to get the bot up.

  • Firstly, we need a IDE(integrated development environment) to write our Code. I recommend you using VScode because it's very easy to use and familiar 😊. Download it here: https://code.visualstudio.com/ , After you install it create a folder on desktop and name it whatever you want.
  • After making a folder open it in VScode. & Now my favorite 😍 part. But, but Hold on.....

I am writing this from m phone so we continue from this where we lefte..

Thank you so much ❤️ for reading.

Top comments (0)