From 52dbd702add381a96f543523dec71741e4832ad6 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 28 Aug 2018 22:33:07 +0200 Subject: Get up to 1000 channels and private/mp/im channels (slack). Related to #489 --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index f77541c1..e6f69ed8 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -318,7 +318,7 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) { b.Usergroups, _ = b.sc.GetUserGroups() case *slack.ConnectedEvent: var err error - b.channels, _, err = b.sc.GetConversations(&slack.GetConversationsParameters{}) + b.channels, _, err = b.sc.GetConversations(&slack.GetConversationsParameters{Limit: 1000, Types: []string{"public_channel,private_channel,mpim,im"}}) if err != nil { b.Log.Errorf("Channel list failed: %#v", err) } -- cgit v1.2.3