# This file was auto-generated by lib/tasks/web.rake desc 'Get info on your multiparty direct messages.' 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.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.command 'history' do |c| c.flag 'channel', desc: 'Multiparty direct message to fetch history for.' 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 'inclusive', desc: 'Include messages with latest or oldest timestamp 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 'This method returns a list of all multiparty direct message channels that the user has.' g.long_desc %( This method returns a list of all multiparty direct message channels that the user has. ) g.command 'list' do |c| 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.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)) 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 end