Module: Slack::Endpoint::Reactions
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/reactions.rb
Instance Method Summary collapse
-
#reactions_add(options = {}) ⇒ Object
Adds a reaction to an item.
-
#reactions_get(options = {}) ⇒ Object
Gets reactions for an item.
-
#reactions_list(options = {}) ⇒ Object
Lists reactions made by a user.
-
#reactions_remove(options = {}) ⇒ Object
Removes a reaction from an item.
Instance Method Details
#reactions_add(options = {}) ⇒ Object
Adds a reaction to an item.
22 23 24 25 |
# File 'lib/slack/endpoint/reactions.rb', line 22 def reactions_add(={}) throw ArgumentError.new("Required arguments :name missing") if [:name].nil? post("reactions.add", ) end |
#reactions_get(options = {}) ⇒ Object
Gets reactions for an item.
43 44 45 |
# File 'lib/slack/endpoint/reactions.rb', line 43 def reactions_get(={}) post("reactions.get", ) end |
#reactions_list(options = {}) ⇒ Object
Lists reactions made by a user.
61 62 63 |
# File 'lib/slack/endpoint/reactions.rb', line 61 def reactions_list(={}) post("reactions.list", ) end |
#reactions_remove(options = {}) ⇒ Object
Removes a reaction from an item.
81 82 83 84 |
# File 'lib/slack/endpoint/reactions.rb', line 81 def reactions_remove(={}) throw ArgumentError.new("Required arguments :name missing") if [:name].nil? post("reactions.remove", ) end |