Slack.Web.Pins.add
You're seeing just the function
add, go back to Slack.Web.Pins module for more information.
Pins an item to a channel.
Required Params
channel- Channel to pin the item in.
Optional Params
file- File to pin.file_comment- File comment to pin.timestamp- Timestamp of the message to pin.
Errors the API can return:
already_pinned- The specified item is already pinned to the channel.bad_timestamp- Value passed fortimestampwas invalid.channel_not_found- Thechannelargument was not specified or was invalidfile_comment_not_found- File comment specified byfile_commentdoes not exist.file_not_found- File specified byfiledoes not exist.file_not_shared- File specified byfileis not public nor shared to the channel.message_not_found- Message specified bychannelandtimestampdoes not exist.no_item_specified- One offile,file_comment, ortimestampwas not specified.permission_denied- The user does not have permission to add pins to the channel.