Conversations

Initiate Discord

Initiates conversation with the discord integration

post
/v1/integration/discord/{discordIntegrationId}/initiate

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Request Body * Required

Request Body Schema: application/json

channelIdstring

The Discord channel ID to send to

textstring

The text message to send to the Discord channel

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.integration.discord.initiate(

discordIntegrationId,
{
"channelId":"string",
"text":"string"
}
)
{
"id":"string"
}
The discord integration was successfully initiated