module Slack::Web::Api::Endpoints::Stars
def stars_add(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/stars/stars.add.json -
See: https://api.slack.com/methods/stars.add -
Options Hash:
(**options)
-
:timestamp
(Object
) -- -
:file_comment
(Object
) -- -
:file
(file
) -- -
:channel
(channel
) --
def stars_add(options = {}) options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel] post('stars.add', options) end
def stars_list(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/stars/stars.list.json -
See: https://api.slack.com/methods/stars.list -
Options Hash:
(**options)
-
:limit
(Object
) -- -
:cursor
(Object
) --
def stars_list(options = {}) if block_given? Pagination::Cursor.new(self, :stars_list, options).each do |page| yield page end else post('stars.list', options) end end
def stars_remove(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/stars/stars.remove.json -
See: https://api.slack.com/methods/stars.remove -
Options Hash:
(**options)
-
:timestamp
(Object
) -- -
:file_comment
(Object
) -- -
:file
(file
) -- -
:channel
(channel
) --
def stars_remove(options = {}) options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel] post('stars.remove', options) end