aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_workspace.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-19 21:53:00 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-20 13:21:38 +0100
commit23d41cfb9b70f2596436e27f69a8865efe32da8a (patch)
tree5546bbd48a4ece39be044221386d6190af0dc478 /slack/slack_workspace.py
parentb9e67bba4d4021f3400275c033b42fa8ffd1a476 (diff)
downloadwee-slack-23d41cfb9b70f2596436e27f69a8865efe32da8a.tar.gz
Add command `/slack linkarchive`
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r--slack/slack_workspace.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index 41e4a21..faa0d73 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -261,6 +261,7 @@ class SlackWorkspace:
async def _connect_oauth(self) -> List[SlackConversation]:
rtm_connect = await self.api.fetch_rtm_connect()
self.id = rtm_connect["team"]["id"]
+ self.domain = rtm_connect["team"]["domain"]
self.my_user = await self.users[rtm_connect["self"]["id"]]
await self._connect_ws(rtm_connect["url"])
@@ -298,6 +299,7 @@ class SlackWorkspace:
if "enterprise_id" in team_info["team"]
else None
)
+ self.domain = team_info["team"]["domain"]
my_user_id = user_boot["self"]["id"]
# self.users.initialize_items(my_user_id, {my_user_id: user_boot["self"]})
self.my_user = await self.users[my_user_id]