The Discord connector synchronizes messages from a Discord channel into your knowledge base. Each channel is stored as a single document with messages formatted chronologically.
Authentication
API Key — Bot token. Requires a Discord bot with:
Read MessagespermissionRead Message Historypermission
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
| Channel ID | Input | Yes | The Discord channel ID |
| Max Messages | Input | No | Maximum messages to sync (default: 1000) |
How It Works
- Channel Resolution — Validates the channel ID via Discord REST API v10
- Message Fetching — Fetches messages newest-first using
before-based pagination (100 per batch) - Reversal — Messages are reversed to chronological order
- Formatting — System messages are filtered out; user messages formatted as
[timestamp] username: content
Document Format
[2024-01-15T10:30:00.000Z] username: message text
[2024-01-15T10:31:00.000Z] otheruser: reply text
...Metadata Tags
| Tag | Type | Description |
|---|---|---|
| Channel Name | Text | The Discord channel name |
| Message Count | Number | Number of synced messages |
| Last Activity | Date | Timestamp of the most recent message |
Limitations
- One document per channel (all messages in one document)
- Bot must be a member of the server and channel
- Message type 0 (DEFAULT) and 19 (REPLY) only

