
Answer: You get your Discord bot token from the Discord Developer Portal: create an application, add a bot, then copy the token from the Bot page. Treat it like a password: never commit it to Git, never post it in screenshots, and rotate it if it leaks.
TL;DR
- Developer Portal → Applications → New Application.
- Bot tab → Add Bot → Reset Token → Copy.
- Store it in secrets (not in code).
- If leaked, rotate immediately.
Token security basics
Use this token security guide for best practices (least privilege, rotation, and secret storage).
Ready to build your own bot?
Stop reading, start building. Create your first Discord bot in minutes—no code required.
Get Started Free