bot token

Exposed Discord Bot Token? Here's how to detect and rotate it

A leaked Discord bot token means full takeover — an attacker can nuke your servers. Scan free with Trust, then Reset Token in the Discord Developer Portal.

A Discord bot token is the single credential that authenticates your bot to Discord, and it carries every permission the bot has been granted. Anyone with the token controls your bot completely — there is no per-request check beyond the token itself. A leaked token means immediate, full bot takeover until you reset it.

What an attacker can do with a leaked Discord Bot Token

How Discord Bot Tokens get exposed

Scan your repo and live site for exposed Discord Bot Tokens — free

Trust checks your code, git history, and shipped JavaScript. No signup, results in about a minute.

Run a free scan →

How to rotate a leaked Discord Bot Token

  1. Go to discord.com/developers/applications and open your application.
  2. Click the Bot tab in the left sidebar.
  3. Click Reset Token, confirm, and enter your 2FA code if prompted — the old token is invalidated instantly and any running instance disconnects.
  4. Copy the new token once and store it in your environment or secrets manager, never in code.
  5. Redeploy or restart your bot with the new token to bring it back online.
  6. Open each server's Server Settings → Audit Log and review recent actions for bans, deletions, or role changes you did not make.

Open the Discord Bot Token dashboard →

Other secret types to check

Keep your app safe