From d21dfc47118aa340ed61dc3dfc8de3682f5dc376 Mon Sep 17 00:00:00 2001 From: sergeikofman444 Date: Tue, 24 Mar 2026 14:26:41 -0400 Subject: [PATCH 1/2] initial commit --- docs.json | 1 + .../assets/icons/discord.svg | 6 + integrations/integration-guides/discord.mdx | 122 ++++++++++++++++++ snippets/integrations/versions.mdx | 4 +- 4 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 integrations/integration-guides/assets/icons/discord.svg create mode 100644 integrations/integration-guides/discord.mdx diff --git a/docs.json b/docs.json index 0c98173c..5649c1b1 100644 --- a/docs.json +++ b/docs.json @@ -290,6 +290,7 @@ "/integrations/integration-guides/canny", "/integrations/integration-guides/chat", "/integrations/integration-guides/chatwoot", + "/integrations/integration-guides/discord", "/integrations/integration-guides/plus-email-notifier", "/integrations/integration-guides/github", "/integrations/integration-guides/gmail", diff --git a/integrations/integration-guides/assets/icons/discord.svg b/integrations/integration-guides/assets/icons/discord.svg new file mode 100644 index 00000000..7700ee33 --- /dev/null +++ b/integrations/integration-guides/assets/icons/discord.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/integrations/integration-guides/discord.mdx b/integrations/integration-guides/discord.mdx new file mode 100644 index 00000000..1720bb78 --- /dev/null +++ b/integrations/integration-guides/discord.mdx @@ -0,0 +1,122 @@ +--- +title: Discord +description: Add your bot to Discord using the official integration. +icon: '/integrations/integration-guides/assets/icons/discord.svg' +--- + +{/* vale off */} + +import integrationVersions from '/snippets/integrations/versions.mdx' +import { OpenInHub } from '/snippets/integrations/open-in-hub.jsx' +import Cards from '/snippets/integrations/cards/botpress/discord.mdx' + + + +{/* vale on */} + +The official Discord integration allows users to chat with your bot in Discord servers, threads, and direct messages. + +## Setup + + + You will need: + + - A [published bot](/get-started/quick-start) + - A [Discord account](https://discord.com/) with permission to create applications + + + + + First, install the integration to your bot: + + 1. In Botpress Studio, select ** Explore Hub** in the upper-right corner. + 2. Search for the **Discord** integration. + 3. Select **Install Integration**. + + In the **Configuration** menu, you should see one field: + + - **Bot Token** + + Leave it empty for now—you'll come back to it after completing the setup in Discord. + + + Next, create a Discord application: + + 1. Go to the [Discord Developer Portal](https://discord.com/developers/applications) and sign in. + 2. Select **New Application** in the top-right corner. + 3. Give your application a name and select **Create**. + + + Now, create a bot user for your application: + + 1. In your application's left sidebar, select **Bot**. + 2. Under the bot's username, you can optionally set a custom avatar and display name. + 3. Under **Privileged Gateway Intents**, enable the following: + - **Server Members Intent** + - **Message Content Intent** + 4. Select **Save Changes**. + + + Next, copy your bot's token: + + 1. Still on the **Bot** page, below **Token**, select **Reset Token** (or **Copy** if a token is already visible). + 2. Confirm the reset if prompted. + 3. Copy the token and store it somewhere safe—you will not be able to see it again. + + + Never share your bot token publicly or commit it to version control. Anyone with access to this token can control your bot. + + + + Now, invite the bot to your Discord server: + + 1. In the left sidebar, select **OAuth2** > **OAuth2 URL Generator**. + 2. Under **Scopes**, select: + - `bot` + - `applications.commands` + 3. Under **Bot Permissions**, select the permissions your bot requires. At minimum: + - **View Channels** + - **Send Messages** + - **Create Public Threads** + - **Create Private Threads** + - **Send Messages in Threads** + - **Pin Messages** + - **Attach Files** + - **Read Message History** + - **Add Reactions** + - **Create Polls** + 4. Copy the generated URL at the bottom of the page and open it in your browser. + 5. Select the server you want to add the bot to and select **Authorize**. + + + Finally, configure the integration in Botpress: + + 1. In the integration's **Bot Token** field, paste your Discord bot token. + 2. Select **Save Configuration**. + + + + + Your Discord integration is ready—users can now chat with your Botpress bot in Discord servers, threads, and direct messages. + + +--- + +## Options + +The Discord integration's **Configuration** menu offers a few additional options: + +### Custom display name / avatar + +- Fill in the **Bot Name** field to display a custom name as the sender in Discord conversations. +- Fill in the **Bot Avatar URL** field to set a custom image as the bot's Discord avatar. + + + The avatar URL must be publicly accessible. Supported formats include PNG, JPG, and GIF. + + +--- + +## Cards + + diff --git a/snippets/integrations/versions.mdx b/snippets/integrations/versions.mdx index 60d605eb..c4fb9b58 100644 --- a/snippets/integrations/versions.mdx +++ b/snippets/integrations/versions.mdx @@ -176,8 +176,8 @@ export const integrationVersions = { "id": "intver_01KGQ972H97YAN3D3KY9425JYN" }, "discord": { - "version": "0.3.2", - "id": "intver_01J3E7AN39P65XZ0Z00C1ZAHJ9" + "version": "0.1.0", + "id": "intver_01KKHR3XSD9SQZJ89ZGWJSF3PR" }, "docusign": { "version": "2.0.0", From 4fdcd50ad04bb8e04bbbfeb12c9f32076eac83bb Mon Sep 17 00:00:00 2001 From: sergeikofman444 Date: Tue, 24 Mar 2026 16:17:42 -0400 Subject: [PATCH 2/2] added correct discord version --- integrations/integration-guides/discord.mdx | 2 +- snippets/integrations/versions.mdx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/integrations/integration-guides/discord.mdx b/integrations/integration-guides/discord.mdx index 1720bb78..3c6f55b2 100644 --- a/integrations/integration-guides/discord.mdx +++ b/integrations/integration-guides/discord.mdx @@ -10,7 +10,7 @@ import integrationVersions from '/snippets/integrations/versions.mdx' import { OpenInHub } from '/snippets/integrations/open-in-hub.jsx' import Cards from '/snippets/integrations/cards/botpress/discord.mdx' - + {/* vale on */} diff --git a/snippets/integrations/versions.mdx b/snippets/integrations/versions.mdx index c4fb9b58..2360c243 100644 --- a/snippets/integrations/versions.mdx +++ b/snippets/integrations/versions.mdx @@ -176,8 +176,8 @@ export const integrationVersions = { "id": "intver_01KGQ972H97YAN3D3KY9425JYN" }, "discord": { - "version": "0.1.0", - "id": "intver_01KKHR3XSD9SQZJ89ZGWJSF3PR" + "version": "0.3.2", + "id": "intver_01J3E7AN39P65XZ0Z00C1ZAHJ9" }, "docusign": { "version": "2.0.0", @@ -627,6 +627,10 @@ export const integrationVersions = { "version": "0.1.9", "id": "intver_01KJG7WM4KXXT6KDKPWARH2AH8" }, + "shell/discord": { + "version": "0.1.0", + "id": "intver_01KKHR3XSD9SQZJ89ZGWJSF3PR" + }, "showpad": { "version": "2.0.0", "id": "intver_01JFAR2MD45546TPY7V2CPBAMD"