Slack v0.2.1 Slack.User View Source

Functions for working with Slack users

Link to this section 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.

Link to this section Functions

Link to this function

getPresence(client, query \\ [])

View Source

Get information about a user's presence.

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

Examples

Slack.User.getPresence(client, user: "U1234567890")

Get the token holder's identity.

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

Examples

Slack.User.identity(client)

Get information about a user.

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

Examples

Slack.User.info(client, user: "U1234567890")

List users on a team.

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

Examples

Slack.User.list(client)
Link to this function

setActive(client, body \\ [])

View Source

Let the messaging server know the user is active.

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

Examples

Slack.User.setActive(client)
Link to this function

setPresence(client, body \\ [])

View Source

Set the calling user's presence.

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

Examples

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