A Discord bot token is the secret string that proves a program is your bot. Anyone who has it can send messages as that bot, from anywhere, without your Discord account. Treat it like a password: paste it only into the service you trust, never into chat, and reset it at once if it leaks.
What is a Discord bot token?
Discord's OAuth2 documentation says bot users are authenticated with the bot token found in the application's settings. The token is how Discord knows that a request comes from your bot and not from someone else.
The token is not your Discord password and not your account. It belongs to the bot. That is why a leaked token is a bot problem first: the person holding it can act as the bot, send what they like and use the bot's reputation.
Where do I find my bot token?
The token is in the Discord Developer Portal, on the Bot tab of your application. A new bot has no visible token until you press Reset Token. After confirming, Discord shows the token once.
- Open the Discord Developer Portal and choose your application.
- Open the Bot tab.
- Press Reset Token and confirm.
- Press Copy while it is showing.
Do not confuse the token with the application's Public Key or Client Secret. They look similar and will not work as a bot token.
Where should I never paste a bot token?
Keep the token out of every place other people can read.
- Discord channels and direct messages, including your own staff channels.
- Email and shared documents, which are copied and forwarded.
- Screenshots, which often show the token field.
- Public code or support tickets.
- Messages to anyone claiming to be support. BotLunar never asks for your token. If somebody asks for it, even in our name, refuse.
Paste the token only into the BotLunar Bots page. BotLunar encrypts it the moment you paste it, never writes it to a log or an error message, and afterwards shows only its last four characters. Nobody at BotLunar can read it back.
What do I do if my bot token leaks?
Act in this order.
- Open the Developer Portal, the Bot tab, and press Reset Token. The old token stops working at once.
- Copy the new token while Discord shows it.
- Paste the new token into the Bots page in BotLunar so sending can carry on.
- Look at the bot's recent activity in your server for anything you did not send.
- If a campaign was running, check its report for messages you did not write.
Resetting is free and quick. Do it even if you are only unsure whether the token was seen.
Can someone get a token from an invite link?
An invite link does not contain the token. The link carries the bot's public application id and the permissions requested. Discord's permissions documentation lists what each permission allows, and BotLunar's invite asks for seven, without Administrator. The token stays in the Developer Portal and in BotLunar.
Why does a stolen token matter for marketing?
A bot that sends direct messages is held to Discord's rules. Discord's Community Guidelines say not to send unsolicited bulk messages. Someone using your leaked token could send exactly that, and Discord would see it as your bot. The same applies to anything that breaks BotLunar's acceptable use policy.
For the wider setup, the setup guide shows how a bot is created, connected and invited. The article on creating a Discord bot covers the first half.
Frequently asked questions
Is a bot token the same as my Discord password?
No. The token belongs to the bot, not to your account. It still gives full control of the bot, so guard it like a password.
Can I see my token again later in the Developer Portal?
No. Discord shows the token once after you reset it. If you lost it, press Reset Token again and copy the new one.
Does BotLunar store my bot token?
BotLunar stores it encrypted, never writes it to a log, and shows only the last four characters. Nobody at BotLunar can read it back.
What if I pasted the token into a public place?
Reset it straight away in the Developer Portal, then add the new token in BotLunar. The old one becomes useless the moment you reset it.
Next step
Read the BotLunar setup guide for the safe way to connect a token, or start the 7 day free trial on Lunar Weekly from the pricing page.