module Slack::Web::Api::Endpoints::Reactions
def reactions_add(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/reactions/reactions.add.json -
See: https://api.slack.com/methods/reactions.add -
Options Hash:
(**options)-
:timestamp(Object) -- -
:channel(channel) -- -
:file_comment(Object) -- -
:file(file) -- -
:name(Object) --
def reactions_add(options = {}) throw ArgumentError.new('Required arguments :name missing') if options[:name].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('reactions.add', options) end
def reactions_get(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/reactions/reactions.get.json -
See: https://api.slack.com/methods/reactions.get -
Options Hash:
(**options)-
:full(Object) -- -
:timestamp(Object) -- -
:channel(channel) -- -
:file_comment(Object) -- -
:file(file) --
def reactions_get(options = {}) options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('reactions.get', options) end
def reactions_list(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/reactions/reactions.list.json -
See: https://api.slack.com/methods/reactions.list -
Options Hash:
(**options)-
:full(Object) -- -
:user(user) --
def reactions_list(options = {}) options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('reactions.list', options) end
def reactions_remove(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/reactions/reactions.remove.json -
See: https://api.slack.com/methods/reactions.remove -
Options Hash:
(**options)-
:timestamp(Object) -- -
:channel(channel) -- -
:file_comment(Object) -- -
:file(file) -- -
:name(Object) --
def reactions_remove(options = {}) throw ArgumentError.new('Required arguments :name missing') if options[:name].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('reactions.remove', options) end