Module: Slack::Web::Stars
- Included in:
- Slack::Web
- Defined in:
- lib/slack/web/stars.rb
Overview
Module for the stars methods.
Constant Summary collapse
- SCOPE =
Endpoint scope
'stars'
Instance Method Summary collapse
-
#stars_add(params = {}) ⇒ Object
This method adds a star to an item (message, file, file comment, channel, private group, or DM) on behalf of the authenticated user.
-
#stars_list(params = {}) ⇒ Object
Lists stars for a user.
-
#stars_remove(params = {}) ⇒ Object
This method removes a star from an item (message, file, file comment, channel, private group, or DM) on behalf of the authenticated user.
Instance Method Details
#stars_add(params = {}) ⇒ Object
This method adds a star to an item (message, file, file comment, channel, private group, or DM) on behalf of the authenticated user.
26 27 28 29 |
# File 'lib/slack/web/stars.rb', line 26 def stars_add(params = {}) response = @session.do_post "#{SCOPE}.add", params Slack.parse_response(response) end |
#stars_list(params = {}) ⇒ Object
Lists stars for a user.
42 43 44 45 |
# File 'lib/slack/web/stars.rb', line 42 def stars_list(params = {}) response = @session.do_post "#{SCOPE}.list", params Slack.parse_response(response) end |
#stars_remove(params = {}) ⇒ Object
This method removes a star from an item (message, file, file comment, channel, private group, or DM) on behalf of the authenticated user.
62 63 64 65 |
# File 'lib/slack/web/stars.rb', line 62 def stars_remove(params = {}) response = @session.do_post "#{SCOPE}.remove", params Slack.parse_response(response) end |