Getting Your Discord Bot Token

Step-by-step guide to creating a Discord bot application and obtaining your bot token.

Security Warning

Your bot token is like a password. Never share it publicly, commit it to Git, or post it in Discord. If exposed, regenerate it immediately.

Step 1: Access Discord Developer Portal

Go to the Discord Developer Portal:

Log in with your Discord account if you haven't already.

Screenshot placeholder: Discord Developer Portal homepage

Step 2: Create New Application

  1. Click the "New Application" button in the top right
  2. Enter a name for your bot (e.g., "My Server Bot")
  3. Accept Discord's Terms of Service
  4. Click "Create"
Screenshot placeholder: New Application creation dialog

The name you choose here will be your bot's initial username (you can change it later).

Step 3: Navigate to Bot Tab

  1. In the left sidebar, click on "Bot"
  2. Click the "Add Bot" button
  3. Confirm by clicking "Yes, do it!"

Discord will create a bot user for your application.

Screenshot placeholder: Bot tab with "Add Bot" button

Step 4: Copy Bot Token

Now you'll get your bot token:

  1. Under the bot's username, find the "TOKEN" section
  2. Click "Reset Token" (if this is your first time, it may say "Copy")
  3. Confirm if prompted
  4. Click "Copy" to copy the token to your clipboard

Important: The token will only be shown once! If you lose it, you'll need to regenerate it.

Screenshot placeholder: Bot token section with Copy button

Step 5: Enable Privileged Intents

For your bot to work properly, you need to enable certain permissions:

Scroll down to "Privileged Gateway Intents" and enable:

Presence Intent - See member online status
Server Members Intent - Access member list and join events
Message Content Intent - Read message content

Make sure to click "Save Changes" at the bottom after enabling these intents.

Screenshot placeholder: Privileged Gateway Intents toggles

Step 6: Use Token in VibeBot

Now that you have your token, return to VibeBot:

  1. Go to your bot's configuration page in VibeBot
  2. Click the "Deploy" button
  3. Paste your Discord bot token into the token field
  4. Click "Deploy Bot"

VibeBot will securely store your token and use it to connect your bot to Discord.

Troubleshooting

Invalid Token Error

If you get an "Invalid Token" error:

  • Make sure you copied the entire token without extra spaces
  • Check that you're using the Bot token, not the Client Secret
  • Try regenerating the token and copying it again

Bot Not Responding

If your bot deploys but doesn't respond:

  • Verify all three Privileged Intents are enabled
  • Make sure you saved changes on Discord Developer Portal
  • Try re-deploying your bot after enabling intents

Token Compromised

If your token was accidentally exposed:

  • Go back to Discord Developer Portal immediately
  • Click "Reset Token" to generate a new one
  • Update the token in VibeBot and re-deploy

Success!

You now have your Discord bot token and have configured the necessary intents. Continue to deploy your bot and invite it to your server.