All connectors

Communication

Discord

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.

ContentWhat is kept
ChannelsName and id of the text channels the bot can read
MessagesMessage content, author and timestamp

Setup

Configuration happens in the dashboard, under Integrations. No API call is needed for a normal setup.

1

Create the application

discord.com/developers/applications → New application, then add a bot and copy its token.

2

Invite the bot

Use the OAuth2 URL with the `bot` scope and the *View Channels* and *Read Message History* permissions.

3

Connect

Integrations → Add source → Discord, paste the token, connect.

Where the credential goes
The bot token goes in the **Token** field. The bot must be a member of the server and able to read the channel.

Configuration options

FieldDescriptionRequired
TokenBot token from the Discord developer portalYes

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

Nothing indexed

The bot is on the server but lacks *Read Message History*, or it was never invited.

Some channels missing

Their category overrides deny the bot. Permissions are resolved per channel in Discord.

Token rejected

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.