Communication
Discord Connector
Index the history of the text channels the bot can read.
Prerequisites
- A Discord server where you can add a bot
- A bot token, and the *Read Message History* permission
Data ingested
When you connect Discord, the following content becomes searchable. Every answer that uses it cites it.
| Content | What is kept |
|---|---|
| Channels | Name and id of the text channels the bot can read |
| Messages | Message content, author and timestamp |
Setup
Configuration happens in the dashboard, under Integrations. No API call is needed for a normal setup.
Create the application
discord.com/developers/applications → New application, then add a bot and copy its token.
Invite the bot
Use the OAuth2 URL with the `bot` scope and the *View Channels* and *Read Message History* permissions.
Connect
Integrations → Add source → Discord, paste the token, connect.
Configuration options
| Field | Description | Required |
|---|---|---|
| Token | Bot token from the Discord developer portal | Yes |
Best practices
- •Restrict the bot to the channels that hold support answers. A general chat channel pollutes the corpus with conversation that answers nothing.
- •The permission is per channel. A channel where the bot cannot read history contributes nothing, silently.
Troubleshooting
The bot is on the server but lacks *Read Message History*, or it was never invited.
Their category overrides deny the bot. Permissions are resolved per channel in Discord.
The token was regenerated, or it is the application token rather than the bot token.
Next steps
Once the source is connected and indexed, ask a question from the chat and check that the answer cites this source. A source that never appears in a citation is usually a source with nothing indexed: see Troubleshooting above.
