Skip to content

Commit

Permalink
Merge pull request #1134 from sequoiacapital-oss/ct/team_id
Browse files Browse the repository at this point in the history
Add team_id as a parameter to the users.conversations API method
  • Loading branch information
kanata2 committed Dec 7, 2022
2 parents 6c7bfc2 + 163befd commit c73fdfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conversation.go
Expand Up @@ -71,6 +71,7 @@ type GetConversationsForUserParameters struct {
Types []string
Limit int
ExcludeArchived bool
TeamID string
}

type responseMetaData struct {
Expand Down Expand Up @@ -137,6 +138,10 @@ func (api *Client) GetConversationsForUserContext(ctx context.Context, params *G
if params.ExcludeArchived {
values.Add("exclude_archived", "true")
}
if params.TeamID != "" {
values.Add("team_id", params.TeamID)
}

response := struct {
Channels []Channel `json:"channels"`
ResponseMetaData responseMetaData `json:"response_metadata"`
Expand Down

0 comments on commit c73fdfc

Please sign in to comment.