Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/resources/message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,6 @@ Retrieves the list of pins in a channel. Requires the `VIEW_CHANNEL` permission.
| Field | Type | Description | Default |
|---------|-------------------|-------------------------------------------|---------|
| before? | ISO8601 timestamp | Get messages pinned before this timestamp | absent |
| after? | ISO8601 timestamp | Get messages pinned after this timestamp | absent |
| limit? | integer | Max number of pins to return (1-50) | 50 |

###### Response Structure
Expand All @@ -986,7 +985,7 @@ Retrieves the list of pins in a channel. Requires the `VIEW_CHANNEL` permission.

If you want to get 100 pins you'd send these two requests:
`GET /channels/:id/messages/pins?limit=50`
`GET /channels/:id/messages/pins?limit=50&after={pins[pins.len() - 1].pinned_at}`
`GET /channels/:id/messages/pins?limit=50&before={pins[pins.len() - 1].pinned_at}`

## Pin Message
<Route method="PUT">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/messages/pins/[\{message.id\}](/docs/resources/message#message-object)</Route>
Expand Down