Skip to content

Commit 11728e6

Browse files
committed
fix errors
1 parent 27039f6 commit 11728e6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/resources/message.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ This endpoint supports the `X-Audit-Log-Reason` header.
965965
## Get Channel Pins
966966
<Route method="GET">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/messages/pins</Route>
967967

968-
Retrieves a list of pins in a channel. Returns an array of [message pin](/docs/resources/message#message-pin-object)s.
968+
Retrieves the list of pins in a channel. Requires the `VIEW_CHANNEL` permission. If the user is missing the `READ_MESSAGE_HISTORY` permission in the channel, then no pins will be returned.
969969

970970
###### Query String Params
971971

@@ -974,10 +974,17 @@ Retrieves a list of pins in a channel. Returns an array of [message pin](/docs/r
974974
| before? | ISO8601 timestamp | Get messages pinned before this timestamp | absent |
975975
| limit? | integer | Max number of pins to return (1-50) | 50 |
976976

977+
###### Response Structure
978+
979+
| Field | Type |
980+
| -------- | -------------------------------------------------------------------------- |
981+
| items | array of [message pin](/docs/resources/message#message-pin-object) objects |
982+
| has_more | boolean |
983+
977984
## Pin Message
978985
<Route method="PUT">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/messages/pins/[\{message.id\}](/docs/resources/message#message-object)</Route>
979986

980-
Pin a message in a channel. Requires the `MANAGE_MESSAGES` permission. Returns a 204 empty response on success. Fires a [Channel Pins Update](/docs/events/gateway-events#channel-pins-update) Gateway event.
987+
Pin a message in a channel. Requires the `MANAGE_MESSAGES` permission. Fires a [Channel Pins Update](/docs/events/gateway-events#channel-pins-update) Gateway event.
981988

982989
:::info
983990
This endpoint supports the `X-Audit-Log-Reason` header.

0 commit comments

Comments
 (0)