---
title: Get Pinned Messages
category: Channel
order: 20
---

# `getPinnedMessages`

```php
$client->channel->getPinnedMessages($parameters);
```

## Description



## Parameters


Name | Type | Required | Default
--- | --- | --- | ---
channel.id | snowflake | true | *null*

## Response

Returns all pinned messages in the channel as an array of message objects.

Can Return:

* message
