Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
GetUserGroups expects a GetUserGroupsOption parameter, not a boolean one.
  • Loading branch information
photown committed May 17, 2022
1 parent 0e14c9d commit d77ddf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -39,7 +39,7 @@ func main() {
// If you set debugging, it will log all requests to the console
// Useful when encountering issues
// slack.New("YOUR_TOKEN_HERE", slack.OptionDebug(true))
groups, err := api.GetUserGroups(false)
groups, err := api.GetUserGroups(slack.GetUserGroupsOptionIncludeUsers(false))
if err != nil {
fmt.Printf("%s\n", err)
return
Expand Down

0 comments on commit d77ddf5

Please sign in to comment.