slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.63k stars 1.12k forks source link

Add support for team_id in UserGroup functions #1179

Open tenyo opened 1 year ago

tenyo commented 1 year ago

This PR adds support for team_id in all of the usergroups functions, so they can work in Slack Enterprise Grid with multiple workspaces. For reference see https://api.slack.com/enterprise/apps/changes-apis#methods

I tried to stick to the established pattern of using Options variadic parameters to pass the team_id (together with other optional arguments). I don't think the changes affect existing clients using a single workspace. I've tested all modified functions against the Slack API in an Enterprise Grid instance.

tenyo commented 1 year ago

Hi there 👋 How can we get the Github tests to run here?