diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-04 15:20:11 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 13:01:40 +0100 |
commit | 2f3fa57090a01b2cf2020ee90cc3f542d1893ebe (patch) | |
tree | 035b7362ebb777bc783f7a6ef49618b9cb79d501 /typings/slack_api | |
parent | e3e901eb7375eefeba0a121ec70391a190dfe948 (diff) | |
download | wee-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.pyi | 18 |
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 +) |