SlackWeb.Stars.add
You're seeing just the function
add
, go back to SlackWeb.Stars module for more information.
Adds a star to an item.
Optional Params
channel
- Channel to add star to, or channel where the message to add star to was posted (used withtimestamp
).file
- File to add star to.file_comment
- File comment to add star to.timestamp
- Timestamp of the message to add star to.
Errors the API can return:
already_starred
- The specified item has already been starred by the authenticated user.bad_timestamp
- Value passed fortimestamp
was invalid.channel_not_found
- Channel, private group, or DM specified bychannel
does not existfile_comment_not_found
- File comment specified byfile_comment
does not exist.file_not_found
- File specified byfile
does not exist.message_not_found
- Message specified bychannel
andtimestamp
does not exist.no_item_specified
-file
,file_comment
,channel
andtimestamp
was not specified.