aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_workspace.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-14 07:51:59 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commita7b617b886c3f56165a5aeb27631520a6e6e5d96 (patch)
tree06f0a3203991244f9c76eb1fdc4cb8d5f79df19c /slack/slack_workspace.py
parent70eaa484831106cb5df6eeb3d7b7fe5ef9b65d0c (diff)
downloadwee-slack-a7b617b886c3f56165a5aeb27631520a6e6e5d96.tar.gz
Create functions for fetch requests
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r--slack/slack_workspace.py13
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"]