aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-04 15:20:11 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 13:01:40 +0100
commit2f3fa57090a01b2cf2020ee90cc3f542d1893ebe (patch)
tree035b7362ebb777bc783f7a6ef49618b9cb79d501 /typings/slack_api
parente3e901eb7375eefeba0a121ec70391a190dfe948 (diff)
downloadwee-slack-2f3fa57090a01b2cf2020ee90cc3f542d1893ebe.tar.gz
Add command `/slack join`
For now this only supports known channels, which currently typically means they have to be referenced in a channel with history loaded.
Diffstat (limited to 'typings/slack_api')
-rw-r--r--typings/slack_api/slack_conversations_join.pyi18
1 files changed, 18 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_join.pyi b/typings/slack_api/slack_conversations_join.pyi
new file mode 100644
index 0000000..8d30898
--- /dev/null
+++ b/typings/slack_api/slack_conversations_join.pyi
@@ -0,0 +1,18 @@
+from __future__ import annotations
+
+from slack_api.slack_common import SlackErrorResponse
+from typing_extensions import Literal, TypedDict, final
+
+@final
+class SlackConversationsJoinChannel(TypedDict):
+ id: str
+ # incomplete
+
+@final
+class SlackConversationsJoinSuccessResponse(TypedDict):
+ ok: Literal[True]
+ channel: SlackConversationsJoinChannel
+
+SlackConversationsJoinResponse = (
+ SlackConversationsJoinSuccessResponse | SlackErrorResponse
+)