Skip to content

Discord Token Setup Guide

TL;DR

Create a bot application in the Discord Developer Portal.

Copy the Bot Token and paste it into your VibeCord project.

To set up a Discord bot token for VibeCord, create a bot application in the Discord Developer Portal, copy the Bot Token, then paste it into your VibeCord project.

Last updated: 2025-12-14

This only needs to be done once — after setup, VibeCord handles everything else.


Why You Need a Bot Token

Your Discord bot token is like a password that lets your bot connect to Discord’s servers. Without it, your bot can’t:

  • Receive messages and commands from users
  • Send responses back to Discord
  • Manage roles, channels, or other server features

Step 1: Create a Discord Application

  1. Open the Discord Developer Portal

    Go to discord.com/developers/applications and sign in with your Discord account.

  2. Click “New Application”

    You’ll see a blue button in the top-right corner.

  3. Enter your bot’s name

    Choose a name for your application (you can change this later). This will also be your bot’s default username.

  4. Accept the Terms of Service and click “Create”

Discord Developer Portal - New Application button

📷 Click to see: Creating the application

Creating a new Discord application with name input


Step 2: Configure Bot Settings

  1. Navigate to the “Bot” tab

    In the left sidebar, click on Bot.

  2. Click “Add Bot” (if needed)

    If you don’t see a bot section yet, click Add BotYes, do it!

  3. Enable Privileged Gateway Intents

    Scroll down to the Privileged Gateway Intents section and enable these toggles:

    • Presence Intent — Lets your bot see member online/offline status
    • Server Members Intent — Lets your bot see member joins/leaves
    • Message Content Intent — Lets your bot read message text
  4. Click “Save Changes”

    Don’t forget this step!

Discord Bot settings showing Privileged Gateway Intents

📷 Click to see: All intents enabled

All three intents enabled (Presence, Server Members, Message Content)


Step 3: Copy Your Bot Token

This is the most important step — you’ll need to copy this token and paste it into VibeCord.

  1. Stay in the “Bot” tab

    You should still be on the Bot settings page.

  2. Find the TOKEN section

    Scroll up to find the Token section (below the username and icon).

  3. Click “Reset Token” or “Copy”

    • If this is a new bot, you may see Copy directly
    • If not, click Reset Token to generate a new one
  4. Enter 2FA code if prompted

    Discord may ask for your authenticator code for security.

  5. Copy the token immediately!

    Discord only shows the token once. Copy it right away and paste it into VibeCord.

Discord Bot token section with copy button

📷 Click to see: Before revealing the token

Click to reveal token button

Token Format

Your token should look something like this:

MTMxNTY4MDI0NTQ1MDQ.G4ABCD.xyz123abc456def789...

Step 4: Enter Token in VibeCord

Now paste your token into VibeCord:

  1. Open your project in VibeCord

  2. Click “Deploy” or open Settings → Discord Configuration

  3. Paste your token in the Token field

  4. Click “Save & Continue”

In-App Token Wizard

VibeCord includes a built-in wizard that guides you through these same steps:

VibeCord Token Setup Modal

Step 1 of the wizard: Token wizard step 1

Step 2 - Configure intents: Token wizard step 2

Step 3 - Paste your token: Token wizard step 3

Success! Token saved


Role Hierarchy (Important for Moderation Bots)

If your bot manages roles, you need to position the bot’s role correctly in your Discord server:

How to fix:

  1. Go to your Discord server settings → Roles
  2. Find your bot’s role
  3. Drag it above any roles the bot needs to manage

Animated guide showing role hierarchy adjustment


Quick Reference Card

Token Location

Discord Developer Portal → Your App → Bot → Token

Required Intents

Enable: Presence, Server Members, Message Content

Token Format

MTMx...ABC.XYZ.def... or mfa.xxxxx...

Security

Never share. Reset immediately if exposed.


Troubleshooting

”Invalid Token” Error

Possible causes:

  • The token was copied incorrectly (missing characters)
  • The token was reset in Discord Developer Portal
  • You copied the Client Secret instead of the Bot Token

Solution: Go back to Discord Developer Portal → Bot → Reset Token → Copy again

Bot Shows as Offline

Possible causes:

  • Token is incorrect or was reset
  • Required intents not enabled
  • Bot hasn’t been deployed yet

Solution: Verify intents are enabled, check token is correct, deploy the bot

Commands Don’t Appear

Possible causes:

  • Slash commands can take up to 1 hour to sync globally
  • applications.commands scope wasn’t included in invite

Solution: Wait 1 hour, or test in DMs with the bot first (syncs faster)

“Missing Permissions” Errors

Possible causes:

  • Bot role is too low in the hierarchy
  • Bot wasn’t invited with required permissions

Solution: Move bot role higher, or re-invite with correct permissions


Next Steps

References