Channels

List pinned messages

Retrieves a paginated list of messages pinned in a channel. User must have permission to view the channel. Supports pagination via limit and before parameters. Returns pinned messages with their pin timestamps.

get/channels/{channel_id}/messages/pins

Path parameters

string snowflake required
OR
integer required

The ID of the channel

Query parameters

limitinteger

Maximum number of pinned messages to return (1-50)

Maximum number of pinned messages to return (1-50)

beforestring

Get pinned messages before this timestamp

Get pinned messages before this timestamp

Response

Success

has_moreboolean required

Whether more pins can be fetched with pagination

Changes