Skip to content

Commit 8ef0380

Browse files
authored
Get Pins has no after param (discord#7630)
1 parent 404b074 commit 8ef0380

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/resources/message.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,6 @@ Retrieves the list of pins in a channel. Requires the `VIEW_CHANNEL` permission.
972972
| Field | Type | Description | Default |
973973
|---------|-------------------|-------------------------------------------|---------|
974974
| before? | ISO8601 timestamp | Get messages pinned before this timestamp | absent |
975-
| after? | ISO8601 timestamp | Get messages pinned after this timestamp | absent |
976975
| limit? | integer | Max number of pins to return (1-50) | 50 |
977976

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

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy