Setting up a Discord application - truemedian/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

Point your browser to the url: discordapp.com/developers/applications/me or click here
this is where all Discord bots and OAuth applications are are born.

Step 2: Create your first Application

  • Click New App
  • Enter your Application's name under App Name

Redirect URI, Description, and App Icon can be ignored for now and editted later. Redirect URI and Description can be ignored entirely as it is for Discord OAuth App Icon will be the avatar for your bot, whilst App Name will be the original username for your bot.

Then hit the Big Blurple Create App 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 scroll to the section labeled: Bot

Creating the Bot

Hit that lovely Create a Discord 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 Token: click to reveal 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 regenerate the second section of your token.
If your token does get into somebody's hands who shouldn't have it click the: Regenerate new token 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 with the Blurple Generate OAuth2 URL button on the bottom of the Bot Information Section After visiting the link hit the copy button just below the scopes menu.

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.
This feature can be accessed 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

⚠️ **GitHub.com Fallback** ⚠️