bin/commands/reactions.rb in slack-ruby-client-0.14.1 vs bin/commands/reactions.rb in slack-ruby-client-0.14.2
- old
+ new
@@ -1,11 +1,11 @@
# 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.desc 'This method adds a reaction (emoji) to a message.'
+ g.long_desc %( This method adds a reaction (emoji) to a message. Now that file threads work the way you'd expect, the file and file_comment arguments are deprecated. Specify channel and timestamp instead. )
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. Now that file threads work the way you'd expect, this argument is deprecated. Specify the timestamp and channel of the message associated with a file instead."
c.flag 'file_comment', desc: "File comment to add reaction to. Now that file threads work the way you'd expect, this argument is deprecated. Specify the timestamp and channel of the message associated with a file instead."
@@ -13,12 +13,12 @@
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.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 '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.'
@@ -26,23 +26,23 @@
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.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 'cursor', desc: "Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first 'page' of the collection. See pagination for more details."
c.flag 'full', desc: 'If true always return the complete reaction list.'
c.flag 'limit', desc: "The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached."
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.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 '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.'