lib/slack/web/api/endpoints/reactions.rb in slack-ruby-client-0.14.6 vs lib/slack/web/api/endpoints/reactions.rb in slack-ruby-client-0.15.0
- old
+ new
@@ -19,11 +19,11 @@
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reactions/reactions.add.json
def reactions_add(options = {})
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
throw ArgumentError.new('Required arguments :timestamp missing') if options[:timestamp].nil?
- options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel]
+ options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
post('reactions.add', options)
end
#
# Gets reactions for an item.
@@ -39,11 +39,11 @@
# @option options [Object] :timestamp
# Timestamp of the message to get reactions for.
# @see https://api.slack.com/methods/reactions.get
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reactions/reactions.get.json
def reactions_get(options = {})
- options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel]
+ options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
post('reactions.get', options)
end
#
# Lists reactions made by a user.
@@ -84,10 +84,10 @@
# Timestamp of the message to remove reaction from.
# @see https://api.slack.com/methods/reactions.remove
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reactions/reactions.remove.json
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]
+ options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
post('reactions.remove', options)
end
end
end
end