Codebase list golang-github-nlopes-slack / 083412a
Set presence=1 in GetUsers to get presence data This should probably be something you can specify when calling `GetUsers()`, but I'm in the web editor at the moment. Tested locally and works for me :-) Kristoffer Berdal 8 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
103103 func (api *Client) GetUsers() ([]User, error) {
104104 values := url.Values{
105105 "token": {api.config.token},
106 "presence": {"1"},
106107 }
107108 response, err := userRequest("users.list", values, api.debug)
108109 if err != nil {