How it works
The Discord connector indexes all channels across every server (guild) that you specify.Setting up a Bot User
- Open the Discord Developer Portal Log in at https://discord.com/developers/applications.
- Create an Application Click the “New Application” button.
- Name and Create Give your application a name and click “Create.”
- Configure the Bot Tab Navigate to the “Bot” tab to begin configuring your bot.
- Public Bot Option Enable the “Public Bot” option if you’d like others to be able to invite your bot.
- Enable Privileged Intents
Under
Privileged Gateway Intents, make sureMESSAGE CONTENT INTENTis checked. - Copy the Bot Token Click the “Copy” button to save your token. If you’ve misplaced it, click “Reset Token” to generate a new one.
Inviting the Bot User to server(s)
Once your Bot User is created, you’ll need to add it to your servers:- Open Your Application Go to https://discord.com/developers/applications and open your application.
- Open the Installation Tab Navigate to the “Installation” tab.
- Enable Guild Install Check “Guild Install” under Installation Contexts.
- Add the Bot Scope
Under the scopes for Guild Install, add the
botscope. - Set Minimum Permissions
Under the permissions section for Guild Install, grant the following minimum permissions:
Manage Messages,Read Message History, andView Channels. - Install Using the Provided Link Use the “Discord Provided Link” to add the bot to your desired server(s). You must have “Manage Server” permissions on the target guild or server.
- Add the Bot to Your Servers Open the link in your browser and follow the prompts to add the bot.
Indexing
- Open the Discord Connector Go to the Connector Dashboard and select the Discord Connector.
- Enter the Bot Token Under credentials, paste the Bot Token you copied in Step 6 of the Bot User setup above.
- Enter Server IDs Provide the server IDs you want to index. By default, all channels in every server or guild where the bot has been added will be indexed.
- Find a Server ID To locate a specific server’s ID, right-click on the server name in the top-right corner and select “Copy Server ID.”
- Enter Channel Names Specify the channel names you want to index. By default, all channels within the specified servers that the bot has access to will be included.
- Find a Channel Name To retrieve a channel name, click the settings icon next to the channel. The name will be listed under the “Overview” section.
- Optional Start Date
You can optionally set a start date in
YYYY-MM-DDformat. Only messages sent on or after this date will be indexed in ASSIST AI.
