Skip to content

Creating your discord bot

Jack Honour edited this page Sep 18, 2022 · 8 revisions

Welcome to the DiscordBot wiki, here you can follow a step by step tutorial for creating and inviting your discord bot.

Creating your Discord bot

Head on over to the Discord Developer Portal login if needed then you should find yourself with a probably empty dashboard, you want to hit that button in the top right that says New Application

Stage1

You should now be able to input your application/bot username:

Stage2

Then if all goes well you should now be shown a dashboard of your application like so:

Stage3

Everything there is fairly irrelevant except the client ID which we'll use later. But for now go to the far left and click the Bot section and then click Add Bot

Stage4

You can now see your Bot, here you can change its username + avatar/icon.

Stage5

Now after setting up the username/avatar you need to copy using the copy button here: To get the token required for config.yml 'token' field.

Stage6

!!! NOTE, DO NOT EVER SHARE THIS TOKEN WITH ANYONE, ANYWHERE. IF YOU DO BY ACCIDENT OR FORCED, RETURN TO THIS DASHBOARD AND PRESS REGENERATE ASAP !!!

After you've copied your token into the config you now need to scroll down on the dashboard and enable these three options: (Don't forget to press save !)

Stage 7

And that's the hard part done, now you just need to get the client ID from earlier (Press the general information tab on far left to go back and get it) and then visit this site:

https://discordapi.com/permissions.html#275080273089

IMPORTANT SECURITY NOTICE You may have to give the bot extra permissions via a role inside discord for example Manage Roles if your using a plugin to give/take user roles.

PLEASE PLEASE Note if the bots token is stolen/leaked immediately regenerate the token or kick the bot from important discord servers to minimise any risk of users taking advantage of the permissions the bot has.

You have been warned.

I Hope this helped, modifications are welcome if you think somethings not clear or accurate.

Clone this wiki locally