Obtaining Tokens and IDs

Types of Tokens

  1. User Token: Associated with a standard user account. Risky to use for automation.
  2. 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.

  1. Log into Discord in your browser.
  2. Open DevTools (Ctrl+Shift+I or F12).
  3. Go to the Network tab.
  4. Filter by messages.
  5. Click on a channel in Discord to trigger a request.
  6. Click the network request named messages.
  7. Look at the Request Headers and find authorization. Copy the value.

How to get a Bot Token

  1. Go to the Discord Developer Portal.
  2. Create a New Application.
  3. Go to the Bot tab and click Add Bot.
  4. Important: Scroll down to Privileged Gateway Intents and enable Message Content Intent.
  5. Click Reset Token to generate and copy your token.
  6. Invite the bot to your server using OAuth2 URL generator (Scopes: bot, Permissions: Read Messages, View Channels).

How to get IDs

  1. In Discord Settings, go to Advanced.
  2. Enable Developer Mode.
  3. Right-click any Server, Channel, or Message and select Copy ID.