How to Get a Discord Bot Token
How to Get a Discord Bot Token
Overview
Use this guide when you want to connect a Discord account inside AutoForward.
AutoForward uses a Discord Bot Token to authenticate your bot before it can publish messages to Discord channels or webhook-based destinations.
If you are on the Add Platform Account screen and selected Discord, this is the value you need to paste into the Discord Bot Token field.
Before You Start
Make sure you have:
A Discord account
Access to the Discord server where the bot will be used
Permission to create applications in the Discord Developer Portal
Step 1: Open the Discord Developer Portal
Go to https://discord.com/developers/applications
Sign in with your Discord account
Click New Application
Step 2: Create a New Discord Application
Enter a name for your bot
Click Create
You will be taken to the application dashboard
Use a clear name so you can recognize it later inside AutoForward, for example:
AutoForward BotNews Relay BotTelegram to Discord Bot
Step 3: Add a Bot to the Application
In the left sidebar, open the Bot tab
Click Add Bot
Confirm by clicking Yes, do it!
After this step, Discord creates a bot user for your application.
Step 4: Copy the Bot Token
Stay on the Bot tab
Find the token section
Click Reset Token if Discord asks you to generate one first
Click Copy to copy the token
This copied value is your bot token.
Example raw token format:
Step 5: Format the Token for AutoForward
In the current AutoForward Discord account flow, use the token in this format:
Example:
Important:
Include the word
BotInclude exactly one space after
BotThen paste the token you copied from Discord
Do not add quotes
If you only copied the raw token from Discord, prepend Bot before pasting it into AutoForward.
Step 6: Add the Token in AutoForward
Open Platform Accounts in AutoForward
Tap Add Account
Select Discord
Enter an account name
Paste the formatted value into Discord Bot Token
Save the account
Run Verify Connection if that option is shown
If the token is valid, the account status should move to a connected state after verification.
Step 7: Invite the Bot to Your Discord Server
Getting the token is not enough by itself. To send messages to a Discord server, your bot must also be added to that server.
Basic flow:
Open the OAuth2 tab in the Discord Developer Portal
Go to URL Generator
Select the scopes your setup needs
Generate the invite URL
Open the URL and add the bot to your server
At minimum, make sure the bot has the permissions required for your destination type, such as:
View Channels
Send Messages
Embed Links
Attach Files
If you plan to publish into a specific channel by bot account, also confirm that the bot can see and post in that channel.
Common Mistakes
1. Pasting the raw token without the prefix
Wrong:
Correct:
2. Resetting the token and still using the old value
If you click Reset Token in Discord, the old token stops working immediately. Update the token in AutoForward right away.
3. Bot not added to the server
Even with a valid token, the bot cannot deliver messages if it has not been invited to the target server.
4. Missing channel permissions
The bot may verify successfully but still fail to publish if it lacks permission in the target channel.
Security Notes
Treat your Discord Bot Token like a password
Never share it in screenshots, chats, or support tickets
Never commit it to Git or public repositories
If the token is exposed, reset it immediately in the Discord Developer Portal and update AutoForward with the new value
Quick Checklist
Application created in Discord Developer Portal
Bot added to the application
Bot token copied
Botprefix added before the tokenToken pasted into AutoForward
Account saved and verified
Bot invited to the correct Discord server
Bot has permission to post in the target channel
Troubleshooting
If AutoForward cannot verify your Discord account:
Re-copy the token from the Discord Developer Portal
Make sure the value starts with
BotRemove accidental extra spaces before or after the token
Confirm the token has not been reset
Save the account again and re-run verification
If the account verifies but publishing still fails, check the bot's server membership and channel permissions.
Last updated