SlackWeb.Pins.add
You're seeing just the function
add
, go back to SlackWeb.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 fortimestamp
was invalid.channel_not_found
- Thechannel
argument was not specified or was invalidfile_comment_not_found
- File comment specified byfile_comment
does not exist.file_not_found
- File specified byfile
does not exist.file_not_shared
- File specified byfile
is not public nor shared to the channel.message_not_found
- Message specified bychannel
andtimestamp
does not exist.no_item_specified
- One offile
,file_comment
, ortimestamp
was not specified.permission_denied
- The user does not have permission to add pins to the channel.