5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 09:20:27 +00:00

Get up to 1000 channels and private/mp/im channels (slack). Related to #489

This commit is contained in:
Wim 2018-08-28 22:33:07 +02:00
parent d7c3570ba3
commit 52dbd702ad

View File

@ -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)
}