DEV Community

DevMirza
DevMirza

Posted on

3 2

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.

Please leave your appreciation by commenting on this post!

Of course, only if it was helpful.

Sure thing!

Top comments (0)

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay