Skip to content

Commit a91da37

Browse files
Update it all
1 parent 8190a09 commit a91da37

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

docs/change-log/2025-06-25-paginated-pins

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Paginated Pin Endpoints"
3+
date: "2025-06-25"
4+
topics:
5+
- "HTTP API"
6+
---
7+
8+
We've added new endpoints to manage paginated pins in channels. The Get Channel Pins endpoint allows you to retrieve and manage pinned messages in a more efficient way, especially for channels with a large number of pinned messages. Both Pin and Unpin endpoints remain the same with a new route. As part of this change we have deprecated the old endpoints for pinned messages. Switching to the new endpoints should be straightforward, as they maintain similar functionality but with improved pagination support.
9+
10+
#### New Endpoints
11+
12+
**[Get Channel Pins](/docs/resources/message#get-channel-pins)**: Retrieve a list of pinned messages in a channel with pagination support:
13+
<Route method="GET">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/messages/pins</Route>
14+
15+
**[Pin Message](/docs/resources/message#pin-message)**: Pin a message in a channel:
16+
<Route method="PUT">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/messages/pins/[\{message.id\}](/docs/resources/message#message-object)</Route>
17+
18+
**[Unpin Message](/docs/resources/message#unpin-message)**: Unpin a message in a channel:
19+
<Route method="DELETE">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/messages/pins/[\{message.id\}](/docs/resources/message#message-object)</Route>
20+
21+
#### Deprecated Endpoints
22+
23+
**[Get Pinned Messages](/docs/resources/message#get-pinned-messages-deprecated)**:
24+
<Route method="GET">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/pins</Route>
25+
26+
**[Pin Message](/docs/resources/message#pin-message-deprecated)**:
27+
<Route method="PUT">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/pins/[\{message.id\}](/docs/resources/message#message-object)</Route>
28+
29+
**[Unpin Message](/docs/resources/message#unpin-message-deprecated)**:
30+
<Route method="DELETE">/channels/[\{channel.id\}](/docs/resources/channel#channel-object)/pins/[\{message.id\}](/docs/resources/message#message-object)</Route>

0 commit comments

Comments
 (0)