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
Specs
getPresence(Slack.Client.t, Keyword.t) :: Slack.response
Get information about a user’s presence.
https://api.slack.com/methods/users.getPresence
Examples
Slack.User.getPresence(client, user: "U1234567890")
Specs
identity(Slack.Client.t, Keyword.t) :: Slack.response
Get the token holder’s identity.
https://api.slack.com/methods/users.identity
Examples
Slack.User.identity(client)
Specs
info(Slack.Client.t, Keyword.t) :: Slack.response
Get information about a user.
https://api.slack.com/methods/users.info
Examples
Slack.User.info(client, user: "U1234567890")
Specs
list(Slack.Client.t, Keyword.t) :: Slack.response
List users on a team.
https://api.slack.com/methods/users.list
Examples
Slack.User.list(client)
Specs
setActive(Slack.Client.t, Keyword.t) :: Slack.response
Let the messaging server know the user is active.
https://api.slack.com/methods/users.setActive
Examples
Slack.User.setActive(client)
Specs
setPresence(Slack.Client.t, Keyword.t) :: Slack.response
Set the calling user’s presence.
https://api.slack.com/methods/users.setPresence
Examples
Slack.User.setPresence(client, presence: "away")