messages_unpin
messages_unpin
Section titled “messages_unpin”Category: messages
Remove a pinned message from a channel.
When to use
Section titled “When to use”- Rotate pinned content; un-stick stale announcements.
When NOT to use
Section titled “When NOT to use”- Removing the message itself → use
messages_delete(this only un-pins).
| Field | Type | Required | Description |
|---|---|---|---|
channel_id | string | yes | Channel containing the message |
message_id | string | yes | Message to unpin |
audit_reason | string | no | Reason recorded in audit log (X-Audit-Log-Reason header) |
Returns
Section titled “Returns”\{unpinned, channel_id, message_id\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
unpinned | boolean | yes | |
channel_id | string | yes | Discord channel ID (snowflake) |
message_id | string | yes | Discord message ID |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |