How to Create a Discord Bot

Before you begin

Before starting, you'll need Manage Server permission for an existing Discord server.

Create a Discord bot

  1. Go to the Discord Applications page, and select New Application.

  2. 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.

  3. 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.

  4. Set your bot's Gateway Intents

    • In the Privileged Gateway Intents section, select both Server Members Intent and Message Content Intent.

    • Select Save Changes.

  5. 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.

  6. 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.

  7. Invite the bot to your Discord server Copy and go to the generated URL.

  8. Select your server from the dropdown, then click Continue.

  9. Confirm the permissions you selected for your bot, click Authorize, then you'll be redirected to your Discord server.

  10. In your Discord server, click on the gear by your name to go to user settings.

  11. Enable Developer Mode for your user in Discord so you can access your server ID.

  12. 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.

  13. 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.

Next Step: Configure your Discord Connector

You now have everything you need to configure a Discord.

Last updated