aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_rtm
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-13 00:24:01 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit0cd9168d99b673ee0adf6528c1ac5afc4de7eff0 (patch)
tree76b7fb6e6ad799eba88e07ee5c7574ca0cbd850e /typings/slack_rtm
parent01c1a010f9d03f69aab27c40f2773147a0fb6bd5 (diff)
downloadwee-slack-0cd9168d99b673ee0adf6528c1ac5afc4de7eff0.tar.gz
Update message when subscribed/unsubscribed
Pyright doesn't allow me to set subscribed/last_read in _message_json since some of the _message_json types don't have them, so had to use separate attributes.
Diffstat (limited to 'typings/slack_rtm')
-rw-r--r--typings/slack_rtm/slack_rtm_message.pyi14
1 files changed, 14 insertions, 0 deletions
diff --git a/typings/slack_rtm/slack_rtm_message.pyi b/typings/slack_rtm/slack_rtm_message.pyi
index 548e695..7f566e2 100644
--- a/typings/slack_rtm/slack_rtm_message.pyi
+++ b/typings/slack_rtm/slack_rtm_message.pyi
@@ -198,6 +198,18 @@ class SlackThreadMarked(TypedDict):
subscription: SlackThreadSubscription | SlackThreadSubscriptionUnknown
event_ts: str
+@final
+class SlackThreadSubscribed(TypedDict):
+ type: Literal["thread_subscribed"]
+ subscription: SlackThreadSubscription | SlackThreadSubscriptionUnknown
+ event_ts: str
+
+@final
+class SlackThreadUnsubscribed(TypedDict):
+ type: Literal["thread_unsubscribed"]
+ subscription: SlackThreadSubscription | SlackThreadSubscriptionUnknown
+ event_ts: str
+
class SlackShRoomHuddle(TypedDict):
channel_id: str
@@ -256,6 +268,8 @@ SlackRtmMessage = (
| SlackMpImMarked
| SlackImMarked
| SlackThreadMarked
+ | SlackThreadSubscribed
+ | SlackThreadUnsubscribed
| SlackShRoomJoin
| SlackShRoomUpdate
| SlackUserTyping