Unpin Message

discord.unpin_message
ActionChat & messagingconnection required

Calls the Discord API with the connection's credentials.

Remove a message from its channel's pins.

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

3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
channel_id
Id of the Discord channel (right-click the channel → Copy Channel ID).
stringYes———
message_id
Id of the message to act on (right-click the message → Copy Message ID).
stringYes———
reason
Why the change was made; recorded in the server's audit log.
stringNo—≤ 512 characters—

Output

One shape.

result

FieldTypeExample
ok
True once Discord accepted the call.
booleantrue
message_id
Id of the unpinned message.
string—
channel_id
Channel it was unpinned in.
string—
pinned
False — the message is no longer pinned.
boolean—
{
  "channel_id": "",
  "message_id": "",
  "ok": true,
  "pinned": false
}

Notes

  • Needs a Discord connection whose secret is the bot token.
  • Needs PIN_MESSAGES — the permission Discord split out of MANAGE_MESSAGES.

See Unpin 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.