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 SourcegetPresence(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Get information about a user's presence.
https://api.slack.com/methods/users.getPresence
Examples
Slack.User.getPresence(client, user: "U1234567890")
Link to this function
identity(client, query \\ [])
View Sourceidentity(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Get the token holder's identity.
https://api.slack.com/methods/users.identity
Examples
Slack.User.identity(client)
Link to this function
info(client, query \\ [])
View Sourceinfo(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Get information about a user.
https://api.slack.com/methods/users.info
Examples
Slack.User.info(client, user: "U1234567890")
Link to this function
list(client, query \\ [])
View Sourcelist(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
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 SourcesetActive(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
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 SourcesetPresence(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Set the calling user's presence.
https://api.slack.com/methods/users.setPresence
Examples
Slack.User.setPresence(client, presence: "away")