diff options
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index d659317..a570658 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -216,6 +216,13 @@ class SlackWorkspace: await self._connect_ws(rtm_connect["url"]) + if not self.api.edgeapi.is_available: + usergroups = await self.api.fetch_usergroups_list() + for usergroup in usergroups["usergroups"]: + future = Future[SlackUsergroup]() + future.set_result(SlackUsergroup(self, usergroup)) + self.usergroups[usergroup["id"]] = future + users_conversations_response = await self.api.fetch_users_conversations( "public_channel,private_channel,mpim,im" ) |