aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-21 19:10:11 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-21 19:10:11 +0100
commitf931870f46ce0af8739ab1439269eabc8dcc2cb4 (patch)
tree9aa9bacd71011693d0d845a1f93b99ac9977c53e /typings/slack_api
parent3f2dd0e60cde8396a4b09f2e5668674f16a40703 (diff)
downloadwee-slack-f931870f46ce0af8739ab1439269eabc8dcc2cb4.tar.gz
Support date in rich text elements
Diffstat (limited to 'typings/slack_api')
-rw-r--r--typings/slack_api/slack_conversations_history.pyi7
1 files changed, 7 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi
index 228d824..dc43cd4 100644
--- a/typings/slack_api/slack_conversations_history.pyi
+++ b/typings/slack_api/slack_conversations_history.pyi
@@ -41,6 +41,12 @@ class SlackMessageBlockRichTextElementColor(TypedDict):
value: str
@final
+class SlackMessageBlockRichTextElementDate(TypedDict):
+ type: Literal["date"]
+ timestamp: int
+ format: str
+
+@final
class SlackMessageBlockRichTextElementChannel(TypedDict):
type: Literal["channel"]
channel_id: str
@@ -65,6 +71,7 @@ SlackMessageBlockRichTextElement = (
| SlackMessageBlockRichTextElementLink
| SlackMessageBlockRichTextElementEmoji
| SlackMessageBlockRichTextElementColor
+ | SlackMessageBlockRichTextElementDate
| SlackMessageBlockRichTextElementChannel
| SlackMessageBlockRichTextElementUser
| SlackMessageBlockRichTextElementUsergroup