Skip to content

Commit fc7dec0

Browse files
advaith1mazylol
authored andcommitted
Get Pins has no after param (discord#7630)
1 parent df5b82e commit fc7dec0

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)