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
| 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) |
files | file[] | No | Files to attach to the message |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Success or error message |
id | string | Author user ID |
content | string | Message content |
channel_id | string | Channel ID where message was sent |
username | string | Author username |
avatar | string | Author 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
| 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 | Description |
|---|---|---|
message | string | Success or error message |
id | string | Author user ID |
content | string | Message content |
channel_id | string | Channel ID |
username | string | Author username |
avatar | string | Author 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
| Parameter | Type | Required | Description |
|---|---|---|---|
botToken | string | Yes | The bot token for authentication |
serverId | string | Yes | The Discord server ID (guild ID) |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Success or error message |
id | string | Server ID |
name | string | Server name |
icon | string | Server icon hash |
description | string | Server description |
owner_id | string | Server owner user ID |
roles | array | Server roles |
channels | array | Server 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
| Parameter | Type | Required | Description |
|---|---|---|---|
botToken | string | Yes | Discord bot token for authentication |
userId | string | Yes | The Discord user ID |
Output
| Parameter | Type | Description |
|---|---|---|
message | string | Success or error message |
id | string | User ID |
username | string | Username |
discriminator | string | User discriminator (4-digit number) |
avatar | string | User avatar hash |
bot | boolean | Whether user is a bot |
system | boolean | Whether user is a system user |
email | string | User 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