aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-12-21 23:42:36 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitc05d66e21a6e946b3fa0b1a48835860d1bb511a1 (patch)
tree605901140656447fe80a36c2982227e432e1df8f /typings
parentaafcb6472607dfae714a025435e1f8081ac8299d (diff)
downloadwee-slack-c05d66e21a6e946b3fa0b1a48835860d1bb511a1.tar.gz
Support color rich text elements
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_conversations_history.pyi6
1 files changed, 6 insertions, 0 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi
index 1714d35..ac6fe6b 100644
--- a/typings/slack_api/slack_conversations_history.pyi
+++ b/typings/slack_api/slack_conversations_history.pyi
@@ -35,6 +35,11 @@ class SlackMessageBlockRichTextElementEmoji(TypedDict):
skin_tone: NotRequired[int]
@final
+class SlackMessageBlockRichTextElementColor(TypedDict):
+ type: Literal["color"]
+ value: str
+
+@final
class SlackMessageBlockRichTextElementChannel(TypedDict):
type: Literal["channel"]
channel_id: str
@@ -58,6 +63,7 @@ SlackMessageBlockRichTextElement = (
SlackMessageBlockRichTextElementText
| SlackMessageBlockRichTextElementLink
| SlackMessageBlockRichTextElementEmoji
+ | SlackMessageBlockRichTextElementColor
| SlackMessageBlockRichTextElementChannel
| SlackMessageBlockRichTextElementUser
| SlackMessageBlockRichTextElementUsergroup