aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-16 21:24:16 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit150fb51720fd0e8a8511c6c3468b8e182dedea3e (patch)
treef155c86fad3c2e27a189bfa47ce83d1acf7cfd74 /slack/slack_conversation.py
parent0b46f31f14e9a69568535b2c73bc00fc396e2d71 (diff)
downloadwee-slack-150fb51720fd0e8a8511c6c3468b8e182dedea3e.tar.gz
Only take in limit, not pages in api methods
Instead of having to supply both a limit and the number of pages, change it to only take in a limit, and determine the number of pages automatically.
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index fd73385..c28c9ec 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -375,7 +375,7 @@ class SlackConversation:
async def load_members(self, load_all: bool = False):
if self._members is None:
members_response = await self._api.fetch_conversations_members(
- self, pages=-1 if load_all else 1
+ self, limit=None if load_all else 1000
)
self._members = members_response["members"]
self.workspace.users.initialize_items(self._members)