Sim Studio

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

  1. Go to the Discord Developer Portal
  2. Create a new application and navigate to the "Bot" tab
  3. Create a bot and copy your bot token
  4. Under "Privileged Gateway Intents", enable the Message Content Intent to read message content
  5. 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

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to send the message to
contentstringNoThe text content of the message
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterType
messagestring

discord_get_messages

Retrieve messages from a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to retrieve messages from
limitnumberNoMaximum number of messages to retrieve (default: 10, max: 100)

Output

ParameterType
messagestring

discord_get_server

Retrieve information about a Discord server (guild)

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterType
messagestring

discord_get_user

Retrieve information about a Discord user

Input

ParameterTypeRequiredDescription
botTokenstringYesDiscord bot token for authentication
userIdstringYesThe Discord user ID

Output

ParameterType
messagestring

Block Configuration

Input

ParameterTypeRequiredDescription
operationstringYesOperation

Outputs

OutputTypeDescription
responseobjectOutput from response
messagestringmessage of the response
dataanydata of the response

Notes

  • Category: tools
  • Type: discord
On this page

On this page