Setting up a Discord application - SinisterRectus/Discordia GitHub Wiki

Before you start using Discordia, you will need to make a new Discord bot application. If you already have one, you can skip to Installing Discordia.

Creating Discord Applications

Step 1: Navigate to /developers/applications

Visit the Discord applications page. This is where all Discord bots and OAuth applications are are born.

Step 2: Create your first Application

  • Click Create an Application
  • Enter your Application's name under Name

The description, and app icon can be ignored for now and edited later.

The app icon will be the avatar for your bot, whilst Name will be the username for your bot.

Then hit the Big Blurple Save Changes Button at the bottom.
This will build your application and bring you to its page.

Setting Up Bot Accounts

When on your application information page click on the Bots section under Settings

Creating the Bot

Hit that lovely Add Bot button, again in Blurple.
This will prompt you about the repercussions of creating a bot account, after reading this hit Yes, do it!
You will see that your Bot Section has changed quite a bit with information about the user.

Getting and using your Token

You will see Click to Reveal Token in your Bot Information Section, your Token is sensitive information and should NEVER be shared. Be aware that the second section of your token is a base64 encoded timestamp of when it was created, so refreshing the page will change the second section of your token.
If your token does get into somebody's hands who shouldn't have it click the Regenerate button, this will invalidate all prior tokens.

Using your Token

Once inside your bot file you will call client:run('Bot TOKEN'), replacing TOKEN with the token received above.

Adding Bots To Servers

Generating OAuth Link

Discord makes this much easier in the OAuth2 tab.
Scroll down to OAuth2 URL Generator and select bot as a scope. There will now be a box below scopes where you can specify the default permissions you want to invite the bot with. This can be changed when people add your bot, so do not rely on the permissions being granted.

Click Copy and your link will be copied to your clipboard. This will be the link you visit to add the bot to your Discord Server
Adding bot to A Discord Server requires that you have MANAGE_SERVER or ADMINISTRATOR permissions or hold owner in the guild

Discord Developer Mode

Discord Developer Mode allows you to right click and retrieve useful information about specific things, such as the ID of a message or user.
This feature can be accessed in the user settings via: User Settings > Appearance > ADVANCED > Developer Mode

This allows you to get:

  • User IDs
  • Guild IDs
  • Channel and Category IDs
  • Message IDs

Next: Installing Discordia