Discord

Interact with Discord

Configuration

Send Message

Operation
Send Message
Bot Token*
••••••••
Server ID*
Enter Discord server ID
Channel ID*
Enter Discord channel ID
Message Content
Enter message content...
Attachments
Upload files to attach
File Attachments
Reference files from previous blocks
Send Message (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

Get Channel Messages

Operation
Get Channel Messages
Bot Token*
••••••••
Server ID*
Enter Discord server ID
Channel ID*
Enter Discord channel ID
Message Limit
Number of messages (default: 10, max: 100)
Get Channel Messages (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
messagesarrayArray of Discord messages with full metadata

Get Server Information

Operation
Get Server Information
Bot Token*
••••••••
Server ID*
Enter Discord server ID
Get Server Information (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

Get User Information

Operation
Get User Information
Bot Token*
••••••••
User ID
Enter Discord user ID
Get User Information (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

Usage Instructions

Integrate Discord into the workflow. Can send and get messages, get server information, and get a user’s information.

Notes

  • Category: tools
  • Type: discord