Slack v0.15.0 Slack.Web.Users View Source

Link to this section Summary

Functions

Gets user presence information

Gets information about a user

Lists all users in a Slack team

Marks a user as active

Link to this section Functions

Link to this function get_presence(user, optional_params \\ %{}) View Source

Gets user presence information.

Required Params

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

Errors the API can return:

Link to this function info(user, optional_params \\ %{}) View Source

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
Link to this function list(optional_params \\ %{}) View Source

Lists all users in a Slack team.

Optional Params

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

Marks a user as active.

Errors the API can return:

Link to this function set_presence(presence, optional_params \\ %{}) View Source

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.