Skip to main content

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.

    Discord application page

  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.

    Discord create 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.

    Discord create token

  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.

    Discord set bot intents

  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.

    Discord URL generator

  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.

    Discord Select Bot Permissions

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

    Discord Copy URL

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

    Discord Go to URL

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

    Discord Go to URL

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

    Discord Go to URL

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

    Discord Go to URL

  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.

    Discord Go to URL

  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.

    Discord Go to URL

Next Step: Configure your Discord Connector

You now have everything you need to configure a Discord connector.

Was this page helpful?