discord_pin_message
Pin or unpin a Discord message in a channel or thread via a boolean flag, enabling controlled management of pinned content with required permissions and pin limits.
Instructions
Pin or unpin a message in a channel, controlled by the pin flag. Requires the Pin Messages permission (a dedicated permission since early 2026, separate from Manage Messages). A channel holds at most 250 pins. Idempotent: pinning an already-pinned message (or unpinning an unpinned one) has no additional effect.
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>",
"pin": "<pin>"
},
"name": "discord_pin_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | true to pin the message, false to unpin it. | |
| channel_id | Yes | ID (snowflake) of the channel or thread containing the message. | |
| message_id | Yes | ID of the message to pin or unpin. |