Kind: global class
Gets user presence information.
Kind: instance method of [UsersFacet](#UsersFacet)
See: users.getPresence
Param | Type | Description |
---|---|---|
user | ? |
User to get presence info on. Defaults to the authed user. |
[optCb] | function |
Optional callback, if not using promises. |
Get a user’s identity.
Kind: instance method of [UsersFacet](#UsersFacet)
See: users.identity
Param | Type | Description |
---|---|---|
[options] | Object |
|
opts.user | ? |
When calling this method with a workspace token, set this to the user ID of the user to retrieve the identity of |
[optCb] | function |
Optional callback, if not using promises. |
Gets information about a user.
Kind: instance method of [UsersFacet](#UsersFacet)
See: users.info
Param | Type | Description |
---|---|---|
user | ? |
User to get info on |
[optCb] | function |
Optional callback, if not using promises. |
Lists all users in a Slack team.
Kind: instance method of [UsersFacet](#UsersFacet)
See: users.list
Param | Type | Description |
---|---|---|
[opts] | Object |
|
opts.presence | ? |
Whether to include presence data in the output |
opts.include_locale | ? |
Set this to true to receive the locale for users. Defaults to false |
[optCb] | function |
Optional callback, if not using promises. |
Marks a user as active.
Kind: instance method of [UsersFacet](#UsersFacet)
See: users.setActive
Param | Type | Description |
---|---|---|
[optCb] | function |
Optional callback, if not using promises. |
Manually sets user presence.
Kind: instance method of [UsersFacet](#UsersFacet)
See: users.setPresence
Param | Type | Description |
---|---|---|
presence | ? |
Either auto or away |
[optCb] | function |
Optional callback, if not using promises. |