# This file was auto-generated by lib/slack/web/api/tasks/generate.rake desc 'Get info on members of your Slack team.' command 'users' do |g| g.desc "This method lets you find out information about a user's presence." g.long_desc %( This method lets you find out information about a user's presence. Consult the presence documentation for more details. ) g.command 'getPresence' do |c| c.flag 'user', desc: 'User to get presence info on. Defaults to the authed user.' c.action do |_global_options, options, _args| puts JSON.dump($client.users_getPresence(options)) end end g.desc 'This method returns information about a team member.' g.long_desc %( This method returns information about a team member. ) g.command 'info' do |c| c.flag 'user', desc: 'User to get info on.' c.action do |_global_options, options, _args| puts JSON.dump($client.users_info(options)) end end g.desc 'This method returns a list of all users in the team. This includes deleted/deactivated users.' g.long_desc %( This method returns a list of all users in the team. This includes deleted/deactivated users. ) g.command 'list' do |c| c.flag 'presence', desc: 'Whether to include presence data in the output.' c.action do |_global_options, options, _args| puts JSON.dump($client.users_list(options)) end end g.desc 'This method lets the slack messaging server know that the authenticated user' g.long_desc %( This method lets the slack messaging server know that the authenticated user is currently active. Consult the presence documentation for more details. ) g.command 'setActive' do |c| c.action do |_global_options, options, _args| puts JSON.dump($client.users_setActive(options)) end end g.desc "This method lets you set the calling user's manual presence." g.long_desc %( This method lets you set the calling user's manual presence. Consult the presence documentation for more details. ) g.command 'setPresence' do |c| c.flag 'presence', desc: 'Either auto or away.' c.action do |_global_options, options, _args| puts JSON.dump($client.users_setPresence(options)) end end end