You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
969
969
970
970
###### Query String Params
971
971
@@ -974,10 +974,17 @@ Retrieves a list of pins in a channel. Returns an array of [message pin](/docs/r
974
974
| before? | ISO8601 timestamp | Get messages pinned before this timestamp | absent |
975
975
| limit? | integer | Max number of pins to return (1-50) | 50 |
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.
981
988
982
989
:::info
983
990
This endpoint supports the `X-Audit-Log-Reason` header.
0 commit comments