How to Get a Discord Bot Token
How to Get a Discord Bot Token
A Discord Bot Token is a unique key that allows your bot to access the Discord API. Follow these steps to obtain it:
1. Log in to the Discord Developer Portal
- Go to the Discord Developer Portal.
- Log in using your Discord account.
2. Create a New Application
- Click "New Application" in the top-right corner.
- Enter a name for your application (e.g., "MyBot").
- Click "Create".
3. Create a Bot
- In the application window, navigate to the "Bot" section in the left menu.
- Click "Add Bot".
- Confirm your choice by clicking "Yes, do it!".
4. Copy the Bot Token
- In the Bot settings window, locate the "Token" section.
- Click "Reset Token" (if you already have one) or "Copy" (if this is your first time).
- Confirm the action and safely copy your token.
⚠️ Important: This token is like a password. Never share it with anyone, as anyone with your token can control your bot.
5. Add the Token to Your FiveM Scripts
6. Add the Bot to a Server
- Navigate to the OAuth2 section in the left menu.
- Select URL Generator.
- Check the "bot" box and select the required permissions.
- Copy the generated URL and open it in your browser.
- Select the server where you want to add the bot and click "Authorize".
Important Tips
- Never share your token publicly. If it gets exposed, you can generate a new one using the "Reset Token" button.
- Follow Discord's rules when using your bot. Violating the rules can lead to your bot being banned.