Discord
Interact with 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, voice channels, and video calls.
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 Sim Studio, 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.
Important: To read message content, your Discord bot needs the "Message Content Intent" enabled in the Discord Developer Portal. Without this permission, you'll still receive message metadata but the content field will appear empty.
Discord components in Sim Studio 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
Connect to Discord to send messages, manage channels, and interact with servers. Automate notifications, community management, and integrate Discord into your workflows.
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 |
---|---|
message | string |
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 |
---|---|
message | string |
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 |
---|---|
message | string |
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 |
---|---|
message | string |
Block Configuration
Input
Parameter | Type | Required | Description |
---|---|---|---|
operation | string | Yes | Operation |
Outputs
Output | Type | Description |
---|---|---|
response | object | Output from response |
↳ message | string | message of the response |
↳ data | any | data of the response |
Notes
- Category:
tools
- Type:
discord