getPinnedMessages
fun getPinnedMessages(limit: Int, sort: QuerySorter<Message>, pagination: PinnedMessagesPagination): Call<List<Message>>
Returns a list of messages pinned in the channel. You can sort the list by specifying sort parameter. Keep in mind that for now we only support sorting by Message.pinnedAt. The list can be paginated in a few different ways using limit and pagination.
Return
Executable async Call responsible for getting pinned messages.
Parameters
limit
Max limit of messages to be fetched.
sort
Parameter by which we sort the messages.
pagination
Provides different options for pagination.