Obtaining Tokens and IDs
Types of Tokens
- User Token: Associated with a standard user account. Risky to use for automation.
- Bot Token: Associated with a Discord Application/Bot. Safe and recommended for server exports.
How to get a User Token
Never share your token with anyone. It gives full access to your account.
- Log into Discord in your browser.
- Open DevTools (
Ctrl+Shift+IorF12). - Go to the Network tab.
- Filter by
messages. - Click on a channel in Discord to trigger a request.
- Click the network request named
messages. - Look at the Request Headers and find
authorization. Copy the value.
How to get a Bot Token
- Go to the Discord Developer Portal.
- Create a New Application.
- Go to the Bot tab and click Add Bot.
- Important: Scroll down to Privileged Gateway Intents and enable Message Content Intent.
- Click Reset Token to generate and copy your token.
- Invite the bot to your server using OAuth2 URL generator (Scopes:
bot, Permissions:Read Messages,View Channels).
How to get IDs
- In Discord Settings, go to Advanced.
- Enable Developer Mode.
- Right-click any Server, Channel, or Message and select Copy ID.