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
idstringAuthor user ID
contentstringMessage content
channel_idstringChannel ID where message was sent
usernamestringAuthor username
avatarstringAuthor avatar hash

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
idstringAuthor user ID
contentstringMessage content
channel_idstringChannel ID
usernamestringAuthor username
avatarstringAuthor avatar hash

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
idstringServer ID
namestringServer name
iconstringServer icon hash
descriptionstringServer description
owner_idstringServer owner user ID
rolesarrayServer roles
channelsarrayServer channels

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

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