mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-12-24 03:25:40 +00: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