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

- old
+ new

@@ -9,11 +9,11 @@ # This method closes a direct message channel. # # @option options [im] :channel # Direct message channel to close. # @see https://api.slack.com/methods/im.close - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.close.json + # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.close.json def im_close(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('im.close', options) end @@ -32,22 +32,22 @@ # @option options [Object] :inclusive # Include messages with latest or oldest timestamp in results. # @option options [Object] :unreads # Include unread_count_display in the output?. # @see https://api.slack.com/methods/im.history - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.history.json + # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.history.json def im_history(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('im.history', options) end # # This method returns a list of all im channels that the user has. # # @see https://api.slack.com/methods/im.list - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.list.json + # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.list.json def im_list(options = {}) post('im.list', options) end # @@ -56,11 +56,11 @@ # @option options [im] :channel # Direct message channel to set reading cursor in. # @option options [timestamp] :ts # Timestamp of the most recently seen message. # @see https://api.slack.com/methods/im.mark - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.mark.json + # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.mark.json def im_mark(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('im.mark', options) @@ -70,10 +70,10 @@ # This method opens a direct message channel with another member of your Slack team. # # @option options [user] :user # User to open a direct message channel with. # @see https://api.slack.com/methods/im.open - # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.open.json + # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.open.json def im_open(options = {}) throw ArgumentError.new('Required arguments :user missing') if options[:user].nil? options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('im.open', options) end