lib/slack/web/api/endpoints/reactions.rb in slack-ruby-client-0.6.0 vs lib/slack/web/api/endpoints/reactions.rb in slack-ruby-client-0.7.0

- old
+ new

@@ -18,11 +18,11 @@ # @option options [channel] :channel # Channel where the message to add reaction to was posted. # @option options [Object] :timestamp # Timestamp of the message to add reaction to. # @see https://api.slack.com/methods/reactions.add - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/reactions.add.json + # @see https://github.com/dblock/slack-api-ref/blob/master/methods/reactions/reactions.add.json 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 @@ -39,11 +39,11 @@ # @option options [Object] :timestamp # Timestamp of the message to get reactions for. # @option options [Object] :full # If true always return the complete reaction list. # @see https://api.slack.com/methods/reactions.get - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/reactions.get.json + # @see https://github.com/dblock/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] post('reactions.get', options) end @@ -53,11 +53,11 @@ # @option options [user] :user # Show reactions made by this user. Defaults to the authed user. # @option options [Object] :full # If true always return the complete reaction list. # @see https://api.slack.com/methods/reactions.list - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/reactions.list.json + # @see https://github.com/dblock/slack-api-ref/blob/master/methods/reactions/reactions.list.json def reactions_list(options = {}) options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('reactions.list', options) end @@ -74,10 +74,10 @@ # @option options [channel] :channel # Channel where the message to remove reaction from was posted. # @option options [Object] :timestamp # Timestamp of the message to remove reaction from. # @see https://api.slack.com/methods/reactions.remove - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/reactions.remove.json + # @see https://github.com/dblock/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] post('reactions.remove', options) end