summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-08-28 22:33:07 +0200
committerWim <wim@42.be>2018-08-28 22:33:07 +0200
commit52dbd702add381a96f543523dec71741e4832ad6 (patch)
treea6ddabf24f34674c5bb7b93668c5e041987fe527 /bridge/slack/slack.go
parentd7c3570ba310233ce10a70a219a08dbe39235883 (diff)
downloadmatterbridge-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/slack/slack.go')
-rw-r--r--bridge/slack/slack.go2
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)
}