aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-04 12:39:35 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 12:59:09 +0100
commita38b434301f109a27ce829558f8d0fa881e00b03 (patch)
treee71ef3a9fc663faae1aedf878a40f64a59b67d5e /typings
parent0a2ceeabf7e4cb6daa3a8bc9634d3da0e6d6d350 (diff)
downloadwee-slack-a38b434301f109a27ce829558f8d0fa881e00b03.tar.gz
Add command `/slack query` to open DM/MPDM channels
For now this only supports known nicks, i.e. mostly nicks that have posted a message, is mentioned in a message or appears in the nicklist in any of the conversations that's loaded.
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_conversations_open.pyi19
1 files changed, 19 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_open.pyi b/typings/slack_api/slack_conversations_open.pyi
new file mode 100644
index 0000000..98d9583
--- /dev/null
+++ b/typings/slack_api/slack_conversations_open.pyi
@@ -0,0 +1,19 @@
+from __future__ import annotations
+
+from slack_api.slack_common import SlackErrorResponse
+from slack_api.slack_conversations_info import (
+ SlackConversationsInfoIm,
+ SlackConversationsInfoMpim,
+)
+from typing_extensions import Literal, NotRequired, TypedDict, final
+
+@final
+class SlackConversationsOpenSuccessResponse(TypedDict):
+ ok: Literal[True]
+ no_op: NotRequired[bool] # Not returned when specifying multiple users
+ already_open: NotRequired[bool] # Not returned when specifying multiple users
+ channel: SlackConversationsInfoIm | SlackConversationsInfoMpim # only when specifying return_im=True
+
+SlackConversationsOpenResponse = (
+ SlackConversationsOpenSuccessResponse | SlackErrorResponse
+)