bin/commands/groups.rb in slack-ruby-client-0.7.7 vs bin/commands/groups.rb in slack-ruby-client-0.7.8
- old
+ new
@@ -125,9 +125,19 @@
c.action do |_global_options, options, _args|
puts JSON.dump($client.groups_rename(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.command 'replies' do |c|
+ c.flag 'channel', desc: 'Private 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.groups_replies(options))
+ end
+ end
+
g.desc 'This method is used to change the purpose of a private channel. The calling user must be a member of the private channel.'
g.long_desc %( This method is used to change the purpose of a private channel. The calling user must be a member of the private channel. )
g.command 'setPurpose' do |c|
c.flag 'channel', desc: 'Private channel to set the purpose of.'
c.flag 'purpose', desc: 'The new purpose.'