bin/commands/mpim.rb in slack-ruby-client-0.14.4 vs bin/commands/mpim.rb in slack-ruby-client-0.14.5
- old
+ new
@@ -1,20 +1,21 @@
+# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
desc 'Mpim methods.'
command 'mpim' do |g|
- g.desc 'This method closes a multiparty direct message channel.'
- g.long_desc %( This method closes a multiparty direct message channel. )
+ g.desc 'Closes a multiparty direct message channel.'
+ g.long_desc %( Closes a multiparty direct message channel. )
g.command 'close' do |c|
c.flag 'channel', desc: 'MPIM to close.'
c.action do |_global_options, options, _args|
puts JSON.dump($client.mpim_close(options))
end
end
- g.desc 'This method returns a portion of messages/events from the specified multiparty direct message channel.'
- g.long_desc %( 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. )
+ g.desc 'Fetches history of messages and events from a multiparty direct message.'
+ g.long_desc %( Fetches history of messages and events from a multiparty direct message. )
g.command 'history' do |c|
c.flag 'channel', desc: 'Multiparty direct message to fetch history for.'
c.flag 'inclusive', desc: 'Include messages with latest or oldest timestamp in results.'
c.flag 'latest', desc: 'End of time range of messages to include in results.'
c.flag 'oldest', desc: 'Start of time range of messages to include in results.'
@@ -22,22 +23,22 @@
c.action do |_global_options, options, _args|
puts JSON.dump($client.mpim_history(options))
end
end
- g.desc "Don't use this method. Use conversations.list instead."
- g.long_desc %( Don't use this method. Use conversations.list instead. )
+ g.desc 'Lists multiparty direct message channels for the calling user.'
+ g.long_desc %( Lists multiparty direct message channels for the calling user. )
g.command 'list' do |c|
c.flag 'cursor', desc: "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."
c.flag 'limit', desc: "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."
c.action do |_global_options, options, _args|
puts JSON.dump($client.mpim_list(options))
end
end
- g.desc 'This method moves the read cursor in a multiparty direct message channel.'
- g.long_desc %( This method moves the read cursor in a multiparty direct message channel. )
+ g.desc 'Sets the read cursor in a multiparty direct message channel.'
+ g.long_desc %( Sets the read cursor in a multiparty direct message channel. )
g.command 'mark' do |c|
c.flag 'channel', desc: 'multiparty direct message channel to set reading cursor in.'
c.flag 'ts', desc: 'Timestamp of the most recently seen message.'
c.action do |_global_options, options, _args|
puts JSON.dump($client.mpim_mark(options))
@@ -51,11 +52,11 @@
c.action do |_global_options, options, _args|
puts JSON.dump($client.mpim_open(options))
end
end
- g.desc 'This method returns an entire thread (a message plus all the messages in reply to it).'
- g.long_desc %( This method returns an entire thread (a message plus all the messages in reply to it). )
+ g.desc 'Retrieve a thread of messages posted to a direct message conversation from a multiparty direct message.'
+ g.long_desc %( Retrieve a thread of messages posted to a direct message conversation from a multiparty direct message. )
g.command 'replies' do |c|
c.flag 'channel', desc: 'Multiparty direct message channel to fetch thread from.'
c.flag 'thread_ts', desc: "Unique identifier of a thread's parent message."
c.action do |_global_options, options, _args|
puts JSON.dump($client.mpim_replies(options))