diff options
author | Wim <wim@42.be> | 2018-08-28 22:33:07 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-08-28 22:33:07 +0200 |
commit | 52dbd702add381a96f543523dec71741e4832ad6 (patch) | |
tree | a6ddabf24f34674c5bb7b93668c5e041987fe527 /bridge | |
parent | d7c3570ba310233ce10a70a219a08dbe39235883 (diff) | |
download | matterbridge-msglm-52dbd702add381a96f543523dec71741e4832ad6.tar.gz matterbridge-msglm-52dbd702add381a96f543523dec71741e4832ad6.tar.bz2 matterbridge-msglm-52dbd702add381a96f543523dec71741e4832ad6.zip |
Get up to 1000 channels and private/mp/im channels (slack). Related to #489
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/slack/slack.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |