From 986f2d2204d95ada9cc04d936d5c08df6d989b8b Mon Sep 17 00:00:00 2001 From: Lester Hairston Date: Sun, 29 Sep 2024 22:27:33 -0500 Subject: [PATCH] docs update --- docs/docs/customize/context-providers.md | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index daed6d63b..d5212e562 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -315,6 +315,36 @@ assignee = currentUser() AND resolution = Unresolved order by updated DESC You can override this query by setting the `issueQuery` parameter. +### `@Discord` + +Reference the messages in a Discord channel. + +```json title="config.json" +{ + "contextProviders": [ + { + "name": "discord", + "params": { + "discordKey": "bot token", + "guildId": "1234567890", + "channels": [ + { + "id": "123456", + "name": "example-channel" + }, + { + "id": "678901", + "name": "example-channel-2" + } + ] + } + } + ] +} +``` + +Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels. + ### `@Postgres` Reference the schema of a table, and some sample rows