mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 18:22:00 -08:00
Get up to 1000 channels and private/mp/im channels (slack). Related to #489
This commit is contained in:
parent
d7c3570ba3
commit
52dbd702ad
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user