discord_pin_message
Pins or unpins a Discord message in a channel or thread using the pin flag; requires Pin Messages permission and respects the 50-pin channel limit.
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 50 pins. Idempotent: pinning an already-pinned message (or unpinning an unpinned one) has no additional effect.
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. |