diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-14 07:51:59 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | a7b617b886c3f56165a5aeb27631520a6e6e5d96 (patch) | |
tree | 06f0a3203991244f9c76eb1fdc4cb8d5f79df19c /slack/slack_workspace.py | |
parent | 70eaa484831106cb5df6eeb3d7b7fe5ef9b65d0c (diff) | |
download | wee-slack-a7b617b886c3f56165a5aeb27631520a6e6e5d96.tar.gz |
Create functions for fetch requests
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 3662682..72ffc7d 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -38,16 +38,9 @@ class SlackWorkspace: async def connect(self): # rtm_connect = await self.api.fetch("rtm.connect") - user_channels_response = await self.api.fetch_list( - "users.conversations", - "channels", - { - "exclude_archived": True, - # "types": "public_channel,private_channel,im", - "types": "public_channel", - "limit": 1000, - }, - -1, + # "types": "public_channel,private_channel,im", + user_channels_response = await self.api.fetch_users_conversations( + "public_channel" ) user_channels = user_channels_response["channels"] |