pins.list
method
Usage info
This method lists the items pinned to a channel.
Response
The response contains a list of pinned items in a channel.
Different item types can be pinned. Every item in the list has a type
property, and the other properties depend on the type of item. The possible types are:
message
: the item will have amessage
property containing a message object and achannel
property containing the channel ID for the message.file
: this item will have afile
property containing a file object.file_comment
: the item will have afile
property containing the file object and acomment
property containing the file comment.
The created
property on each item is a Unix timestamp representing when the item was pinned.
The created_by
property on each item is a string representing the encoded user id of the user who pinned the item.