-
-
Notifications
You must be signed in to change notification settings - Fork 9
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.
-
Open Discord Developer Portal: Go to the Discord Developer Portal and log in with your Discord account.
-
Create a New Application: Click on the
New Application
button. Give your application a name and confirm by clickingCreate
. -
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.
-
Copy the Bot Token
- In the Bot settings, find the
reset token
under theToken
section. Copy and paste this token into a text file for later.
- In the Bot settings, find the
-
Enable Required Intents
In the bot settings under theBot
tab, you will find a section forPrivileged 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.
-
-
Generate Invite Link
In theOAuth2
tab:- Under
Scopes
, selectbot
. - Under
Bot Permissions
, select the permissions your bot needs.
- Under
-
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. -
Example Invite Link
-
client_id
: Replace theYOUR_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