Get Message
discord.get_message
ActionChat & messagingconnection required
Calls the Discord API with the connection's credentials.
Fetch one message from a channel by its id.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Discord
- Secret shape
- the bot token (sent as "Authorization: Bot <token>") for every op except discord.execute_webhook, whose secret is the webhook URL
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
channel_id Id of the Discord channel (right-click the channel → Copy Channel ID). | string | Yes | — | — | — |
message_id Id of the message to act on (right-click the message → Copy Message ID). | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id Id of the message. | string | — |
channel_id Channel the message is in. | string | — |
content The message text. | string | — |
timestamp When the message was sent (ISO-8601). | string | — |
edited_timestamp When it was last edited, if ever. | string | — |
pinned True when the message is pinned in its channel. | boolean | — |
author.id Id of the account that posted it. | string | — |
author.username Username of the account that posted it. | string | — |
embeds The embeds attached to the message. | array | — |
attachments The files attached to the message. | array | — |
{
"attachments": [],
"author": {
"id": "",
"username": ""
},
"channel_id": "",
"content": "",
"edited_timestamp": "",
"embeds": [],
"id": "",
"pinned": false,
"timestamp": ""
}Notes
- Needs a Discord connection whose secret is the bot token.
- The bot needs READ_MESSAGE_HISTORY in the channel.
See Get Message run in a workflow.
In a technical demo we add the Discord connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.