-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ListTeams and TeamAccess{Granted,Revoked}Events and fix missing enterprise ID #1119
Conversation
2cf2d3d
to
aceca79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for submitting PR!
conversation.go
Outdated
"is_private": {strconv.FormatBool(params.IsPrivate)}, | ||
"team_id": {params.TeamID}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the behavior when passing an empty parameter... it is better to skip if these fields are empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thanks!
6f7f1c1
to
d0de2c2
Compare
@kanata2 thank you for reviewing - i addressed/responded to the PR comments |
@kanata2 thanks again for reviewing - could you take a look at the new changes here? |
Sorry for delay. I'll confirm within a few days. |
Before this change, innerEvent.EnterpriseID was always empty string. Now, it is filled when available from the outer event.
This is a breaking change that hopefully future proofs this codepath from future breaking changes, since adding additional params to the struct should be backwards compatible.
d0de2c2
to
2d81614
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I'll release this in next minor version.
This PR makes a few changes useful for building Slack Enterprise Grid integrations.
team_access_granted
andteam_access_revoked
eventsListTeams
to callauth.teams.list
EnterpriseID
is not filled in the events api for callback eventsTeamID
toCreateConversation
. This is a breaking change, but hopefully one that prevents future breaking changes.