Skip to content

Creating the Discord Application

Kozejin edited this page Feb 19, 2024 · 1 revision

This section covers the process of creating a Discord application, inviting the bot to your server, and enabling intents for proper functionality.

Creating a Discord Application

  1. Open Discord Developer Portal: Go to the Discord Developer Portal and log in with your Discord account.

  2. Create a New Application: Click on the New Application button. Give your application a name and confirm by clicking Create.

  3. Configure Application: In the application settings:

    • General Information: Review and customize the application's name and description.
    • Bot: Navigate to the Bot tab and you can set the bot's username and profile picture.
  4. Copy the Bot Token

    • In the Bot settings, find the reset token under the Token section. Copy and paste this token into a text file for later.

Enabling Intents

  1. Enable Required Intents
    In the bot settings under the Bot tab, you will find a section for Privileged Gateway Intents. Enable all the intents:
    • PRESENCE INTENT: Required for your bot to received presence updates.
    • SERVER MEMBERS INTENT: For operations related to server members.
    • MESSAGE CONTENT INTENT: If your bot needs to read message content.

Inviting the Bot to Your Server

  1. Generate Invite Link
    In the OAuth2 tab:

    • Under Scopes, select bot.
    • Under Bot Permissions, select the permissions your bot needs.
  2. Copy and Use the Invite Link
    After selecting the appropriate scopes and permissions, an invite link will be generated at the bottom of the scopes section. Copy this link and open it in a web browser to invite your bot to your Discord server.

  3. Example Invite Link

    • client_id: Replace the YOUR_BOT_CLIENT_ID with the application id of the bot.
https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_CLIENT_ID&permissions=8&scope=bot%20applications.commands