messages_unpin
Remove a pinned message from a Discord channel to rotate pinned content or clear stale announcements. This unpins the message without deleting it.
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}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel_id": "<channel_id>",
"message_id": "<message_id>"
},
"name": "messages_unpin"
}
}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 | |||