Discord
Discord is a powerful communication platform that allows you to connect with friends, communities, and teams. It offers a range of features for team collaboration, including text channels and voice channels.
With a Discord account or bot, you can:
- Send messages: Send messages to a specific channel
- Get messages: Get messages from a specific channel
- Get server: Get information about a specific server
- Get user: Get information about a specific user
In Klyntos, the Discord integration enables your agents to access and leverage your organization's Discord servers. Agents can retrieve information from Discord channels, search for specific users, get server information, and send messages. This allows your workflows to integrate with your Discord communities, automate notifications, and create interactive experiences. Discord components in Klyntos use efficient lazy loading, only fetching data when needed to minimize API calls and prevent rate limiting. Token refreshing happens automatically in the background to maintain your connection.
Setting Up Your Discord Botβ
- Go to the Discord Developer Portal
- Create a new application and navigate to the "Bot" tab
- Create a bot and copy your bot token
- Under "Privileged Gateway Intents", enable the Message Content Intent to read message content
- Invite your bot to your servers with appropriate permissions
Usage Instructionsβ
Integrate Discord into the workflow. Can send and get messages, get server information, and get a userβs information. Requires bot API key.
Toolsβ
discord_send_message
β
Send a message to a Discord channel
Inputβ
Parameter | Type | Required | Description |
---|---|---|---|
botToken | string | Yes | The bot token for authentication |
channelId | string | Yes | The Discord channel ID to send the message to |
content | string | No | The text content of the message |
serverId | string | Yes | The Discord server ID (guild ID) |
Outputβ
Parameter | Type | Description |
---|---|---|
message | string | Success or error message |
data | object | Discord message data |
discord_get_messages
β
Retrieve messages from a Discord channel
Inputβ
Parameter | Type | Required | Description |
---|---|---|---|
botToken | string | Yes | The bot token for authentication |
channelId | string | Yes | The Discord channel ID to retrieve messages from |
limit | number | No | Maximum number of messages to retrieve (default: 10, max: 100) |
Outputβ
Parameter | Type | Description |
---|---|---|
message | string | Success or error message |
messages | array | Array of Discord messages with full metadata |
discord_get_server
β
Retrieve information about a Discord server (guild)
Inputβ
Parameter | Type | Required | Description |
---|---|---|---|
botToken | string | Yes | The bot token for authentication |
serverId | string | Yes | The Discord server ID (guild ID) |
Outputβ
Parameter | Type | Description |
---|---|---|
message | string | Success or error message |
data | object | Discord server (guild) information |
discord_get_user
β
Retrieve information about a Discord user
Inputβ
Parameter | Type | Required | Description |
---|---|---|---|
botToken | string | Yes | Discord bot token for authentication |
userId | string | Yes | The Discord user ID |
Outputβ
Parameter | Type | Description |
---|---|---|
message | string | Success or error message |
data | object | Discord user information |
Notesβ
- Category:
tools
- Type:
discord