Sim

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, 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 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

Comprehensive Discord integration: messages, threads, channels, roles, members, invites, and webhooks.

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)
filesfile[]NoFiles to attach to the message

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectDiscord message data
idstringAuthor user ID
contentstringMessage content
channel_idstringChannel ID where message was sent
authorobjectMessage author information
idstringAuthor user ID
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
timestampstringMessage timestamp
edited_timestampstringMessage edited timestamp
embedsarrayMessage embeds
attachmentsarrayMessage attachments
mentionsarrayUser mentions in message
mention_rolesarrayRole mentions in message
mention_everyonebooleanWhether message mentions everyone

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

ParameterTypeDescription
messagestringSuccess or error message
dataobjectContainer for messages data
messagesarrayArray of Discord messages with full metadata
idstringAuthor user ID
contentstringMessage content
channel_idstringChannel ID
authorobjectMessage author information
idstringAuthor user ID
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
timestampstringMessage timestamp
edited_timestampstringMessage edited timestamp
embedsarrayMessage embeds
attachmentsarrayMessage attachments
mentionsarrayUser mentions in message
mention_rolesarrayRole mentions in message
mention_everyonebooleanWhether message mentions everyone
idstringAuthor user ID
contentstringMessage content
channel_idstringChannel ID
authorobjectMessage author information
idstringAuthor user ID
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
usernamestringAuthor username
avatarstringAuthor avatar hash
botbooleanWhether author is a bot
timestampstringMessage timestamp
edited_timestampstringMessage edited timestamp
embedsarrayMessage embeds
attachmentsarrayMessage attachments
mentionsarrayUser mentions in message
mention_rolesarrayRole mentions in message
mention_everyonebooleanWhether message mentions everyone

discord_get_server

Retrieve information about a Discord server (guild)

Input

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

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectDiscord server (guild) information
idstringServer ID
namestringServer name
iconstringServer icon hash
descriptionstringServer description
owner_idstringServer owner user ID
rolesarrayServer roles
channelsarrayServer channels
member_countnumberNumber of members in server

discord_get_user

Retrieve information about a Discord user

Input

ParameterTypeRequiredDescription
botTokenstringYesDiscord bot token for authentication
userIdstringYesThe Discord user ID

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectDiscord user information
idstringUser ID
usernamestringUsername
discriminatorstringUser discriminator (4-digit number)
avatarstringUser avatar hash
botbooleanWhether user is a bot
systembooleanWhether user is a system user
emailstringUser email (if available)
verifiedbooleanWhether user email is verified

discord_edit_message

Edit an existing message in a Discord channel

Input

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

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated Discord message data
idstringMessage ID
contentstringUpdated message content
channel_idstringChannel ID
edited_timestampstringMessage edited timestamp

discord_delete_message

Delete a message from a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID containing the message
messageIdstringYesThe ID of the message to delete
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_add_reaction

Add a reaction emoji to a Discord message

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID containing the message
messageIdstringYesThe ID of the message to react to
emojistringYesThe emoji to react with (unicode emoji or custom emoji in name:id format)
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_remove_reaction

Remove a reaction from a Discord message

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID containing the message
messageIdstringYesThe ID of the message with the reaction
emojistringYesThe emoji to remove (unicode emoji or custom emoji in name:id format)
userIdstringNoThe user ID whose reaction to remove (omit to remove bot's own reaction)
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_pin_message

Pin a message in a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID containing the message
messageIdstringYesThe ID of the message to pin
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_unpin_message

Unpin a message in a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID containing the message
messageIdstringYesThe ID of the message to unpin
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_create_thread

Create a thread in a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to create the thread in
namestringYesThe name of the thread (1-100 characters)
messageIdstringNoThe message ID to create a thread from (if creating from existing message)
autoArchiveDurationnumberNoDuration in minutes to auto-archive the thread (60, 1440, 4320, 10080)
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated thread data
idstringThread ID
namestringThread name
typenumberThread channel type
guild_idstringServer ID
parent_idstringParent channel ID

discord_join_thread

Join a thread in Discord

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
threadIdstringYesThe thread ID to join
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_leave_thread

Leave a thread in Discord

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
threadIdstringYesThe thread ID to leave
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_archive_thread

Archive or unarchive a thread in Discord

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
threadIdstringYesThe thread ID to archive/unarchive
archivedbooleanYesWhether to archive (true) or unarchive (false) the thread
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated thread data
idstringThread ID
archivedbooleanWhether thread is archived

discord_create_channel

Create a new channel in a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
namestringYesThe name of the channel (1-100 characters)
typenumberNoChannel type (0=text, 2=voice, 4=category, 5=announcement, 13=stage)
topicstringNoChannel topic (0-1024 characters)
parentIdstringNoParent category ID for the channel

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated channel data
idstringChannel ID
namestringChannel name
typenumberChannel type
guild_idstringServer ID

discord_update_channel

Update a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to update
namestringNoThe new name for the channel
topicstringNoThe new topic for the channel
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated channel data
idstringChannel ID
namestringChannel name
typenumberChannel type
topicstringChannel topic

discord_delete_channel

Delete a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to delete
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_get_channel

Get information about a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to retrieve
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectChannel data
idstringChannel ID
namestringChannel name
typenumberChannel type
topicstringChannel topic
guild_idstringServer ID

discord_create_role

Create a new role in a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
namestringYesThe name of the role
colornumberNoRGB color value as integer (e.g., 0xFF0000 for red)
hoistbooleanNoWhether to display role members separately from online members
mentionablebooleanNoWhether the role can be mentioned

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated role data
idstringRole ID
namestringRole name
colornumberRole color
hoistbooleanWhether role is hoisted
mentionablebooleanWhether role is mentionable

discord_update_role

Update a role in a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
roleIdstringYesThe role ID to update
namestringNoThe new name for the role
colornumberNoRGB color value as integer
hoistbooleanNoWhether to display role members separately
mentionablebooleanNoWhether the role can be mentioned

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated role data
idstringRole ID
namestringRole name
colornumberRole color

discord_delete_role

Delete a role from a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
roleIdstringYesThe role ID to delete

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_assign_role

Assign a role to a member in a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
userIdstringYesThe user ID to assign the role to
roleIdstringYesThe role ID to assign

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_remove_role

Remove a role from a member in a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
userIdstringYesThe user ID to remove the role from
roleIdstringYesThe role ID to remove

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_kick_member

Kick a member from a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
userIdstringYesThe user ID to kick
reasonstringNoReason for kicking the member

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_ban_member

Ban a member from a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
userIdstringYesThe user ID to ban
reasonstringNoReason for banning the member
deleteMessageDaysnumberNoNumber of days to delete messages for (0-7)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_unban_member

Unban a member from a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
userIdstringYesThe user ID to unban
reasonstringNoReason for unbanning the member

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_get_member

Get information about a member in a Discord server

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
userIdstringYesThe user ID to retrieve

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectMember data
userobjectUser information
idstringUser ID
usernamestringUsername
avatarstringAvatar hash
idstringUser ID
usernamestringUsername
avatarstringAvatar hash
nickstringServer nickname
rolesarrayArray of role IDs
joined_atstringWhen the member joined

discord_update_member

Update a member in a Discord server (e.g., change nickname)

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
serverIdstringYesThe Discord server ID (guild ID)
userIdstringYesThe user ID to update
nickstringNoNew nickname for the member (null to remove)
mutebooleanNoWhether to mute the member in voice channels
deafbooleanNoWhether to deafen the member in voice channels

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectUpdated member data
nickstringServer nickname
mutebooleanVoice mute status
deafbooleanVoice deaf status

discord_create_invite

Create an invite link for a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to create an invite for
maxAgenumberNoDuration of invite in seconds (0 = never expires, default 86400)
maxUsesnumberNoMax number of uses (0 = unlimited, default 0)
temporarybooleanNoWhether invite grants temporary membership
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated invite data
codestringInvite code
urlstringFull invite URL
max_agenumberMax age in seconds
max_usesnumberMax uses
temporarybooleanWhether temporary

discord_get_invite

Get information about a Discord invite

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
inviteCodestringYesThe invite code to retrieve
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectInvite data
codestringInvite code
guildobjectServer information
channelobjectChannel information
approximate_member_countnumberApproximate member count
approximate_presence_countnumberApproximate online count

discord_delete_invite

Delete a Discord invite

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
inviteCodestringYesThe invite code to delete
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message

discord_create_webhook

Create a webhook in a Discord channel

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
channelIdstringYesThe Discord channel ID to create the webhook in
namestringYesName of the webhook (1-80 characters)
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectCreated webhook data
idstringWebhook ID
namestringWebhook name
tokenstringWebhook token
urlstringWebhook URL
channel_idstringChannel ID

discord_execute_webhook

Execute a Discord webhook to send a message

Input

ParameterTypeRequiredDescription
webhookIdstringYesThe webhook ID
webhookTokenstringYesThe webhook token
contentstringYesThe message content to send
usernamestringNoOverride the default username of the webhook
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectMessage sent via webhook
idstringMessage ID
contentstringMessage content
channel_idstringChannel ID
timestampstringMessage timestamp

discord_get_webhook

Get information about a Discord webhook

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
webhookIdstringYesThe webhook ID to retrieve
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
dataobjectWebhook data
idstringWebhook ID
namestringWebhook name
channel_idstringChannel ID
guild_idstringServer ID
tokenstringWebhook token

discord_delete_webhook

Delete a Discord webhook

Input

ParameterTypeRequiredDescription
botTokenstringYesThe bot token for authentication
webhookIdstringYesThe webhook ID to delete
serverIdstringYesThe Discord server ID (guild ID)

Output

ParameterTypeDescription
messagestringSuccess or error message
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started