Skip to main content

Discord Setup

Connect your Vecbase agent to Discord so users in your server can chat with it.

Prerequisites

  • A Discord account
  • A Discord server where you have admin permissions
  • A Vecbase agent created

Step 1: Create a Discord Application

1

Open Developer Portal

Go to Discord Developer Portal and log in.
2

Create application

Click New Application. Give it a name (e.g., “Vecbase Assistant”).
3

Create a bot

Go to the Bot section in the left sidebar. Click Add BotYes, do it!
4

Copy bot token

Click Reset Token to generate a new token, then copy it:
MTI3NjU0MzIxMDk4NzY1NDMy.GH8k2w.abc123...
You can only see the token once. If you lose it, you’ll need to reset it.
5

Enable intents

Scroll down to Privileged Gateway Intents and enable:
  • Message Content Intent (required to read messages)
  • Server Members Intent (required for member info)

Step 2: Invite Bot to Your Server

1

Generate invite URL

Go to OAuth2URL Generator.Select scopes:
  • bot
  • applications.commands
Select bot permissions:
  • ✅ Send Messages
  • ✅ Read Message History
  • ✅ Attach Files
  • ✅ Add Reactions
  • ✅ Manage Threads
2

Invite the bot

Copy the generated URL and open it in your browser. Select the server and click Authorize.

Step 3: Connect in Vecbase

1

Open agent settings

Open your agent, tap Settings in the top right, then select Channels.
2

Add Discord channel

Click Add Channel next to Discord.
3

Enter credentials

  • Display Name: A name for this channel (e.g., “Dev Server Bot”)
  • Bot Token: Paste the token from Step 1
4

Create

Click Create. Status will change to Connected.

Step 4: Test

Go to your Discord server and send a message in a channel where the bot has access. The bot will respond automatically.
In servers with many channels, the bot responds only in channels where it has Send Messages permission. You can use Discord’s channel permissions to control where the bot is active.

Limitations

LimitValue
File upload25 MB (default, 50 MB with Nitro boost)
Message length2,000 characters