Skip to content

πŸš€ Initial Discord Bot Creation Guide

Manuel edited this page Dec 27, 2022 · 4 revisions

Thank you for deciding to give this a shot! This short guide will guide you through the process of registering your Discord Bot at Discord.

Step 1: Creating your Discord Bot

This Discord bot requires you, to register your own Discord application. No worries, this is not complicated and can be done under 5 minutes.

Step 1.1: Creating an Application

Go to https://discord.com/developers/applications and click on the "New Application" button.

image

Then, you'll be prompted for an application name. This is not the name, that will be shown in Discord. Instead, it is only for you to remember what this application does.

image

Make sure to check the checkbox below to agree to the required ToS and policy.

Step 1.2: Add a bot to your application

An application is not necessarily a bot. For this reason, we need to add a bot to this application. Click on the "Bot" tab:

image

Then, click on the "Add Bot" button on the right side:

image

Confirm your action by pressing the "Yes, do it!" button:

image

Step 1.3: Securing your bot

By default, everyone can invite this bot to any server. This is bad, because they could exploit vulnerabilities to harm you.

For this reason, please uncheck the "Public bot" switch:

image

Next, check the "message content intent" switch:

image

Make sure to save your changes using the banner blow:

image

Step 1.4: Inviting your bot

Now, it's time to invite your shiny new bot to your server. Simply click on Oauth and a new menu selection will show up. Click on URL Generator:

image

Then, check the bot scope at the very top of the page:

image

Then, check the following permissions and click on the blue "Copy" button on the very bottom to copy the invitation link.

image

Open this link in your browser and a shiny bot invitation window will appear. Select your server and hit "Continue":

image

Make sure, that all check boxes are enabled in the following step. Click "Authorize".

image

You're good to go to the next step, when you see this popup:

image

Step 2: Running the bot itself

Until now, you just have configured the bot application for Discord. Now, you need to host it somewhere.