# 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.command 'add' do |c| c.flag 'name', desc: 'Reaction (emoji) name.' 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.command 'get' do |c| 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.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.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.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.command 'remove' do |c| c.flag 'name', desc: 'Reaction (emoji) name.' 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 end