# This file was auto-generated by lib/tasks/web.rake desc 'Reactions methods.' command 'reactions' do |g| 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 '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 '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 '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 'Lists reactions made by a user.' g.long_desc %( Lists reactions made by a user. ) g.command 'list' do |c| 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 '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 '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 end