From 163befd77fe58695fbf875e4b2ad1ef2d9e78689 Mon Sep 17 00:00:00 2001 From: Caleb Tennis Date: Thu, 24 Nov 2022 10:19:18 -0500 Subject: [PATCH] Add team_id as a parameter to the users.conversations API method --- conversation.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conversation.go b/conversation.go index e523716cc..d1edcedbb 100644 --- a/conversation.go +++ b/conversation.go @@ -71,6 +71,7 @@ type GetConversationsForUserParameters struct { Types []string Limit int ExcludeArchived bool + TeamID string } type responseMetaData struct { @@ -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"`