bin/commands/reactions.rb in slack-ruby-client-0.9.0 vs bin/commands/reactions.rb in slack-ruby-client-0.9.1

- old
+ new

@@ -1,51 +1,51 @@ # This file was auto-generated by lib/tasks/web.rake desc 'Reactions methods.' command 'reactions' do |g| - g.desc 'This method adds a reaction (emoji) to an item (file, file comment, channel message, group message, or direct message).' - g.long_desc %( This method adds a reaction (emoji) to an item (file, file comment, channel message, group message, or direct message). One of file, file_comment, or the combination of channel and timestamp must be specified. ) + g.desc 'Adds a reaction to an item.' + g.long_desc %( Adds a reaction to an item. ) g.command 'add' do |c| c.flag 'name', desc: 'Reaction (emoji) name.' + c.flag 'channel', desc: 'Channel where the message to add reaction to was posted.' c.flag 'file', desc: 'File to add reaction to.' c.flag 'file_comment', desc: 'File comment to add reaction to.' - c.flag 'channel', desc: 'Channel where the message to add reaction to was posted.' c.flag 'timestamp', desc: 'Timestamp of the message to add reaction to.' c.action do |_global_options, options, _args| puts JSON.dump($client.reactions_add(options)) end end - g.desc 'This method returns a list of all reactions for a single item (file, file comment, channel message, group message, or direct message).' - g.long_desc %( This method returns a list of all reactions for a single item (file, file comment, channel message, group message, or direct message). ) + g.desc 'Gets reactions for an item.' + g.long_desc %( Gets reactions for an item. ) g.command 'get' do |c| + c.flag 'channel', desc: 'Channel where the message to get reactions for was posted.' c.flag 'file', desc: 'File to get reactions for.' c.flag 'file_comment', desc: 'File comment to get reactions for.' - c.flag 'channel', desc: 'Channel where the message to get reactions for was posted.' - c.flag 'timestamp', desc: 'Timestamp of the message to get reactions for.' c.flag 'full', desc: 'If true always return the complete reaction list.' + c.flag 'timestamp', desc: 'Timestamp of the message to get reactions for.' c.action do |_global_options, options, _args| puts JSON.dump($client.reactions_get(options)) end end - g.desc 'This method returns a list of all items (file, file comment, channel message, group message, or direct message) reacted to by a user.' - g.long_desc %( This method returns a list of all items (file, file comment, channel message, group message, or direct message) reacted to by a user. ) + g.desc 'Lists reactions made by a user.' + g.long_desc %( Lists reactions made by a user. ) g.command 'list' do |c| - c.flag 'user', desc: 'Show reactions made by this user. Defaults to the authed user.' c.flag 'full', desc: 'If true always return the complete reaction list.' + c.flag 'user', desc: 'Show reactions made by this user. Defaults to the authed user.' c.action do |_global_options, options, _args| puts JSON.dump($client.reactions_list(options)) end end - g.desc 'This method removes a reaction (emoji) from an item (file, file comment, channel message, group message, or direct message).' - g.long_desc %( This method removes a reaction (emoji) from an item (file, file comment, channel message, group message, or direct message). One of file, file_comment, or the combination of channel and timestamp must be specified. ) + g.desc 'Removes a reaction from an item.' + g.long_desc %( Removes a reaction from an item. ) g.command 'remove' do |c| c.flag 'name', desc: 'Reaction (emoji) name.' + c.flag 'channel', desc: 'Channel where the message to remove reaction from was posted.' c.flag 'file', desc: 'File to remove reaction from.' c.flag 'file_comment', desc: 'File comment to remove reaction from.' - c.flag 'channel', desc: 'Channel where the message to remove reaction from was posted.' c.flag 'timestamp', desc: 'Timestamp of the message to remove reaction from.' c.action do |_global_options, options, _args| puts JSON.dump($client.reactions_remove(options)) end end