bin/commands/mpim.rb in slack-ruby-client-0.16.0 vs bin/commands/mpim.rb in slack-ruby-client-0.17.0
- old
+ new
@@ -1,66 +1,6 @@
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
desc 'Get info on your multiparty direct messages.'
command 'mpim' do |g|
- 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 '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.'
- c.flag 'unreads', desc: 'Include unread_count_display in the output?.'
- c.action do |_global_options, options, _args|
- puts JSON.dump($client.mpim_history(options))
- end
- end
-
- 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 '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: 'Channel or conversation to set the read cursor for.'
- c.flag 'ts', desc: 'Unique identifier of message you want marked as most recently seen in this conversation.'
- c.action do |_global_options, options, _args|
- puts JSON.dump($client.mpim_mark(options))
- end
- end
-
- g.desc 'This method opens a multiparty direct message.'
- g.long_desc %( This method opens a multiparty direct message. )
- g.command 'open' do |c|
- c.flag 'users', desc: 'Comma separated lists of users. The ordering of the users is preserved whenever a MPIM group is returned.'
- c.action do |_global_options, options, _args|
- puts JSON.dump($client.mpim_open(options))
- end
- end
-
- 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))
- end
- end
end