# Pin Message

> Pin a message in a channel.

- ID: `pin_discord_message`
- Type: Block
- Category: [Messages](https://inventor.bot/docs/reference/blocks/messages.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `channel_id` | yes | ID of the channel containing the message. |  |
| `message_id` | yes | ID of the message to pin. |  |

**Example**

```go
pin_discord_message(Args{channel_id: trigger.channel_id, message_id: trigger.message_id})
```