messages_unpin
Unpin a message from a Discord channel to rotate pinned content and clear stale announcements, without deleting the message.
Instructions
Purpose: Remove a pinned message from a channel.
When to use:
Rotate pinned content; un-stick stale announcements.
When NOT to use:
Removing the message itself → use
messages_delete(this only un-pins).
Returns: {unpinned, channel_id, message_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | Channel containing the message | |
| message_id | Yes | Message to unpin | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||