lib/slack/web/api/endpoints/mpim.rb in slack-ruby-client-0.14.1 vs lib/slack/web/api/endpoints/mpim.rb in slack-ruby-client-0.14.2

- old
+ new

@@ -4,11 +4,11 @@ module Web module Api module Endpoints module Mpim # - # Closes a multiparty direct message channel. + # This method closes a multiparty direct message channel. # # @option options [channel] :channel # MPIM to close. # @see https://api.slack.com/methods/mpim.close # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/mpim/mpim.close.json @@ -17,11 +17,13 @@ options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('mpim.close', options) end # - # Fetches history of messages and events from a multiparty direct message. + # This method returns a portion of messages/events from the specified multiparty direct message channel. + # To read the entire history for a multiparty direct message, call the method with no latest or + # oldest arguments, and then continue paging using the instructions below. # # @option options [channel] :channel # Multiparty direct message to fetch history for. # @option options [Object] :inclusive # Include messages with latest or oldest timestamp in results. @@ -38,11 +40,11 @@ options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('mpim.history', options) end # - # Lists multiparty direct message channels for the calling user. + # Don't use this method. Use conversations.list instead. # # @option options [Object] :cursor # Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See pagination for more details. # @option options [Object] :limit # The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. @@ -57,11 +59,11 @@ post('mpim.list', options) end end # - # Sets the read cursor in a multiparty direct message channel. + # This method moves the read cursor in a multiparty direct message channel. # # @option options [channel] :channel # multiparty direct message channel to set reading cursor in. # @option options [timestamp] :ts # Timestamp of the most recently seen message. @@ -85,10 +87,10 @@ throw ArgumentError.new('Required arguments :users missing') if options[:users].nil? post('mpim.open', options) end # - # Retrieve a thread of messages posted to a direct message conversation from a multiparty direct message. + # This method returns an entire thread (a message plus all the messages in reply to it). # # @option options [channel] :channel # Multiparty direct message channel to fetch thread from. # @option options [Object] :thread_ts # Unique identifier of a thread's parent message.