aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-20 21:09:10 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitf3f97e5cbb97ed7a04bc3e40a110805ff0ae53c8 (patch)
treed6abf2212800d82e3e845a4ec5f70dd031fa5f94 /typings
parent9a92344a77731f443d19dfdb24a6a47a1b7dc9ce (diff)
downloadwee-slack-f3f97e5cbb97ed7a04bc3e40a110805ff0ae53c8.tar.gz
Render reactions after messages
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_rtm/slack_rtm_message.pyi28
1 files changed, 28 insertions, 0 deletions
diff --git a/typings/slack_rtm/slack_rtm_message.pyi b/typings/slack_rtm/slack_rtm_message.pyi
index 1e0c105..d6840ec 100644
--- a/typings/slack_rtm/slack_rtm_message.pyi
+++ b/typings/slack_rtm/slack_rtm_message.pyi
@@ -88,6 +88,32 @@ class SlackMessageReplied(TypedDict):
event_ts: str
@final
+class SlackReactionItem(TypedDict):
+ type: Literal["message", "file", "file_comment"]
+ channel: str
+ ts: str
+
+@final
+class SlackReactionAdded(TypedDict):
+ type: Literal["reaction_added"]
+ user: str
+ reaction: str
+ item: SlackReactionItem
+ item_user: NotRequired[str]
+ event_ts: str
+ ts: str
+
+@final
+class SlackReactionRemoved(TypedDict):
+ type: Literal["reaction_removed"]
+ user: str
+ reaction: str
+ item: SlackReactionItem
+ item_user: NotRequired[str]
+ event_ts: str
+ ts: str
+
+@final
class SlackUserTyping(TypedDict):
type: Literal["user_typing"]
channel: str
@@ -113,5 +139,7 @@ SlackRtmMessage = (
| SlackMessageChanged
| SlackMessageDeleted
| SlackMessageReplied
+ | SlackReactionAdded
+ | SlackReactionRemoved
| SlackUserTyping
)