diff options
Diffstat (limited to 'vendor/github.com/slack-go/slack/conversation.go')
-rw-r--r-- | vendor/github.com/slack-go/slack/conversation.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/slack-go/slack/conversation.go b/vendor/github.com/slack-go/slack/conversation.go index 17b6d8a4..29936260 100644 --- a/vendor/github.com/slack-go/slack/conversation.go +++ b/vendor/github.com/slack-go/slack/conversation.go @@ -458,6 +458,7 @@ type GetConversationsParameters struct { ExcludeArchived bool Limit int Types []string + TeamID string } // GetConversations returns the list of channels in a Slack team @@ -482,6 +483,9 @@ func (api *Client) GetConversationsContext(ctx context.Context, params *GetConve if params.ExcludeArchived { values.Add("exclude_archived", strconv.FormatBool(params.ExcludeArchived)) } + if params.TeamID != "" { + values.Add("team_id", params.TeamID) + } response := struct { Channels []Channel `json:"channels"` |