lib/slack/web/api/endpoints/mpim.rb in slack-ruby-client-0.15.1 vs lib/slack/web/api/endpoints/mpim.rb in slack-ruby-client-0.16.0
- old
+ new
@@ -64,19 +64,19 @@
#
# Sets the read cursor in a multiparty direct message channel.
#
# @option options [channel] :channel
- # multiparty direct message channel to set reading cursor in.
+ # Channel or conversation to set the read cursor for.
# @option options [timestamp] :ts
- # Timestamp of the most recently seen message.
+ # Unique identifier of message you want marked as most recently seen in this conversation.
# @see https://api.slack.com/methods/mpim.mark
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/mpim/mpim.mark.json
def mpim_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: conversations_id(options)['channel']['id']) if options[:channel]
- logger.warn('mpim.mark: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: .')
+ logger.warn('mpim.mark: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.mark.')
post('mpim.mark', options)
end
#
# This method opens a multiparty direct message.