Slack v0.10.0 Slack.Web.Users

Summary

Functions

Gets user presence information

Gets information about a user

Lists all users in a Slack team

Marks a user as active

Functions

get_presence(user, optional_params \\ %{})

Gets user presence information.

Required Params

  • user - User to get presence info on. Defaults to the authed user.

Errors the API can return:

info(user, optional_params \\ %{})

Gets information about a user.

Required Params

  • user - User to get info on

Errors the API can return:

  • user_not_found - Value passed for user was invalid.
  • user_not_visible - The requested user is not visible to the calling user
list(optional_params \\ %{})

Lists all users in a Slack team.

Optional Params

  • presence - Whether to include presence data in the output ex: 1
set_active(optional_params \\ %{})

Marks a user as active.

Errors the API can return:

set_presence(presence, optional_params \\ %{})

Manually sets user presence.

Required Params

  • presence - Either auto or away ex: away

Errors the API can return:

  • invalid_presence - Value passed for presence was invalid.