bin/commands/im.rb in slack-ruby-client-0.9.1 vs bin/commands/im.rb in slack-ruby-client-0.10.0
- old
+ new
@@ -25,10 +25,12 @@
end
g.desc 'Lists direct message channels for the calling user.'
g.long_desc %( Lists direct message channels for the calling user. )
g.command 'list' do |c|
+ c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection. See pagination for more detail."
+ 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 users list hasn't been reached."
c.action do |_global_options, options, _args|
puts JSON.dump($client.im_list(options))
end
end
@@ -44,9 +46,10 @@
g.desc 'Opens a direct message channel.'
g.long_desc %( Opens a direct message channel. )
g.command 'open' do |c|
c.flag 'user', desc: 'User to open a direct message channel with.'
+ c.flag 'include_locale', desc: 'Set this to true to receive the locale for this im. Defaults to false.'
c.flag 'return_im', desc: 'Boolean, indicates you want the full IM channel definition in the response.'
c.action do |_global_options, options, _args|
puts JSON.dump($client.im_open(options))
end
end