Skip to content

Commit

Permalink
fix bug with member pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
docmarionum1 committed Feb 1, 2021
1 parent 7e0619a commit aa66265
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion archivebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def get_channel_info(channel_id):
response = app.client.conversations_members(channel=channel["id"])
members = response["members"]
while response["response_metadata"]["next_cursor"]:
response = app.client.conversations_members(channel=channel["id"])
response = app.client.conversations_members(
channel=channel["id"], cursor=response["response_metadata"]["next_cursor"]
)
members += response["members"]

return (
Expand Down

0 comments on commit aa66265

Please sign in to comment.