How to Create a Discord Bot
Last updated
Last updated
Before starting, you'll need Manage Server permission for an existing Discord server.
Go to the Discord Applications page, and select New Application.
Enter a name for your application, agree to Discord's terms, then click Create. Note that the application name cannot include the text Discord.
Once your application has been created, the General Information page will display. You can upload an icon and add a description for your application.
Create and store your Discord bot token
Go to the Bot tab.
Click Reset Token. You'll be prompted for confirmation. The first time you reset the token, it actually creates your token.
Select Save Changes, and store your token securely. You'll need this when you create your connector in Vectorize.
Set your bot's Gateway Intents
In the Privileged Gateway Intents section, select both Server Members Intent and Message Content Intent.
Select Save Changes.
Go to the OAuth2 tab, and select bot in the OAuth2 URL Generator section. This will generate an invite link so you can invite the bot to your Discord server.
Set the bot's permissions
In the Bot Permissions section, select View Channels and Read Message History.
Optional: If you plan to allow only certain members in your Discord server to access custom emoji, also select Manage Expressions.
Invite the bot to your Discord server Copy and go to the generated URL.
Select your server from the dropdown, then click Continue.
Confirm the permissions you selected for your bot, click Authorize, then you'll be redirected to your Discord server.
In your Discord server, click on the gear by your name to go to user settings.
Enable Developer Mode for your user in Discord so you can access your server ID.
Retrieve and store your Discord server ID.
Right-click the name of your server in Discord.
Click Copy Server ID.
Securely store the server ID. You'll need this when you create your connector in Vectorize.
Retrieve and store your channel ID.
Right-click the name of the channel you'll connect to Vectorize.
Click Copy Channel ID.
Securely store the channel ID. You'll need this when you create your connector in Vectorize.
You now have everything you need to configure a Discord.