bin/commands/pins.rb in slack-ruby-client-0.17.0 vs bin/commands/pins.rb in slack-ruby-client-1.0.0
- old
+ new
@@ -4,11 +4,11 @@
desc 'Pins methods.'
command 'pins' do |g|
g.desc 'Pins an item to a channel.'
g.long_desc %( Pins an item to a channel. )
g.command 'add' do |c|
- c.flag 'channel', desc: 'Channel to pin the item in.'
- c.flag 'timestamp', desc: 'Timestamp of the message to pin.'
+ c.flag 'channel', desc: 'Channel to pin the messsage to. You must also include a timestamp when pinning messages.'
+ c.flag 'timestamp', desc: 'Timestamp of the message to pin. You must also include the channel.'
c.action do |_global_options, options, _args|
puts JSON.dump($client.pins_add(options))
end
end