Create the bot on Discord
Create the application, get the token and invite the bot.
Every Discord bot starts as an application in the Developer Portal. That is what gives Realms its token and Client ID.
1. Create the application
- Open the Discord Developer Portal and click New Application.
- Give it a name (the name the bot shows) and confirm.
- Under General Information, copy the Application ID — that is your
DISCORD_CLIENT_ID.
2. Get the token
- Open Bot and click Reset Token.
- Copy the token — that is your
DISCORD_TOKEN.
3. Turn on the intents
Still under Bot, in Privileged Gateway Intents, turn on:
- Server Members Intent
- Message Content Intent
4. Invite it to your server
- Open OAuth2 → URL Generator.
- Tick the
botandapplications.commandsscopes. - Under permissions, tick Administrator (or only what your modules need).
- Open the generated link and pick your server.
Done: with the token and the Client ID, continue with Install on your computer or Host on a panel.