Discord Application
Create the Discord applicationYour bot's entry in the Discord Developer Portal that the bot signs in as, and switch on the privileged intentsAn intent you must switch on in the Developer Portal first your features need.
Create the Application
- Open the Discord Developer Portal and create a new application.
- Open the application's Bot page.
You don't need to copy the Application ID. The control panel learns it the first time the bot connects.
Copy the Bot Token
On the application's Bot page, select Reset Token and copy the token Discord shows. It is different from the Application ID, the Public Key, and the Client Secret, which the bot doesn't use.
You paste the token on the control panel's Connection page during First-Run Setup. The panel encrypts it and never shows it again.
warning
Keep the token private. Anyone who has it can sign in as your bot.
Turn On Privileged Intents
Switch on the privileged intentsAn intent you must switch on in the Developer Portal first for the features you plan to use, in the Privileged Gateway IntentsA kind of Discord event the bot asks to hear about section of the Bot page.
| Intent | Needed by |
|---|---|
| Message Content | Auto replies, suspicious words, regex rules, affiliate cleanup, scammer alerts, message copiers, message proxies, and the audit link and edit routes |
| Server Members | Anti-raid, impersonator alerts, role messages, role synchronization, the audit join, leave, nickname, username, and role routes, and every server tool except the emoji summary |
| Presence | Not used by any feature |
The bot requests a privileged intentAn intent you must switch on in the Developer Portal first only while an enabled, valid feature needs it. If a feature needs an intent that is off in the Developer Portal, Discord refuses the connection, and the control panel shows Stopped by an error.
Install the Bot in Your Server
The invite link on the Connection page, and Add a server in the server menu, open Discord's install page for your application. The link appears after the bot signs in for the first time, so First-Run Setup covers it in order.
The install link asks for the bot and applications.commands scopes and no permissions.
Grant Permissions
Because the install link requests no permissions, give the bot a role with the permissions your features need, and place that role above the roles it manages. Most features don't check permissions before they act, so a missing permission usually shows up as an error on the control panel's Logs page.
Permissions and Intents lists what each feature needs.