aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-21 18:32:17 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitf5dc1e5601a441a2378298e7b15490faab904584 (patch)
tree233ca253648b7d5516bd260157f9ae96706c5c3f /typings/slack_api
parentf3f97e5cbb97ed7a04bc3e40a110805ff0ae53c8 (diff)
downloadwee-slack-f5dc1e5601a441a2378298e7b15490faab904584.tar.gz
Render me/action messages correctly
Diffstat (limited to 'typings/slack_api')
-rw-r--r--typings/slack_api/slack_conversations_history.pyi8
1 files changed, 8 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi
index 8b2118a..ebedc78 100644
--- a/typings/slack_api/slack_conversations_history.pyi
+++ b/typings/slack_api/slack_conversations_history.pyi
@@ -103,6 +103,13 @@ class SlackMessageStandardCommon(SlackMessageCommon):
class SlackMessageStandardFinal(SlackMessageStandardCommon):
pass
+class SlackMessageMe(SlackMessageStandardCommon):
+ subtype: Literal["me_message"]
+
+@final
+class SlackMessageMeFinal(SlackMessageMe):
+ pass
+
class SlackMessageThreadParentCommon(SlackMessageStandardCommon):
thread_ts: str
reply_count: int
@@ -186,6 +193,7 @@ class SlackMessageSubtypeChannelLeaveFinal(SlackMessageSubtypeChannelLeave):
SlackMessage = (
SlackMessageStandardFinal
+ | SlackMessageMeFinal
| SlackMessageThreadParentNotSubscribedFinal
| SlackMessageThreadParentSubscribedFinal
| SlackMessageWithFilesFinal