From cd3e3710b8baf73768aed0156ccbd62d74942b1e Mon Sep 17 00:00:00 2001 From: everpcpc Date: Wed, 18 Aug 2021 18:29:02 +0800 Subject: [PATCH] fix(slack): get conversations with limit 1000 --- slack/slack.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slack/slack.go b/slack/slack.go index a62d12c..40a9320 100644 --- a/slack/slack.go +++ b/slack/slack.go @@ -105,6 +105,7 @@ func (c *Client) Run() { var cursor string for { chs, cursor, err := c.api.GetConversations(&slack.GetConversationsParameters{ + Limit: 1000, Cursor: cursor, Types: []string{"public_channel"}, }) @@ -129,6 +130,7 @@ func (c *Client) Run() { for name, fc := range c.forwards { for { chs, cursor, err := fc.api.GetConversations(&slack.GetConversationsParameters{ + Limit: 1000, Cursor: cursor, Types: []string{"public_channel"}, })