Slack v0.0.12 Slack.User

Functions for working with Slack users

Summary

Functions

Get information about a user’s presence

Get the token holder’s identity

Get information about a user

List users on a team

Let the messaging server know the user is active

Set the calling user’s presence

Functions

getPresence(client, query \\ [])

Specs

Get information about a user’s presence.

https://api.slack.com/methods/users.getPresence

Examples

Slack.User.getPresence(client, user: "U1234567890")
identity(client, query \\ [])

Get the token holder’s identity.

https://api.slack.com/methods/users.identity

Examples

Slack.User.identity(client)
info(client, query \\ [])

Get information about a user.

https://api.slack.com/methods/users.info

Examples

Slack.User.info(client, user: "U1234567890")
list(client, query \\ [])

List users on a team.

https://api.slack.com/methods/users.list

Examples

Slack.User.list(client)
setActive(client, body \\ [])

Specs

Let the messaging server know the user is active.

https://api.slack.com/methods/users.setActive

Examples

Slack.User.setActive(client)
setPresence(client, body \\ [])

Specs

Set the calling user’s presence.

https://api.slack.com/methods/users.setPresence

Examples

Slack.User.setPresence(client, presence: "away")