diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-15 23:15:54 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | fdc62f23df3eb715e921fc6f32d3a39aaf210a4e (patch) | |
tree | 45ffefd52652a3c67850d3cc25b0285a588b372e /typings/slack_api | |
parent | 0e4ac01dfd41a15eeb67de08ca788e82d3736a6f (diff) | |
download | wee-slack-fdc62f23df3eb715e921fc6f32d3a39aaf210a4e.tar.gz |
Show conversation topic in buffer title
Diffstat (limited to 'typings/slack_api')
-rw-r--r-- | typings/slack_api/slack_conversations_history.pyi | 10 | ||||
-rw-r--r-- | typings/slack_api/slack_conversations_info.pyi | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi index 4b3702a..7443a14 100644 --- a/typings/slack_api/slack_conversations_history.pyi +++ b/typings/slack_api/slack_conversations_history.pyi @@ -456,6 +456,15 @@ class SlackMessageSubtypeChannelLeave(SlackMessageCommon): class SlackMessageSubtypeChannelLeaveFinal(SlackMessageSubtypeChannelLeave): pass +class SlackMessageSubtypeChannelTopic(SlackMessageCommon): + subtype: Literal["channel_topic"] + topic: str + user: str + +@final +class SlackMessageSubtypeChannelTopicFinal(SlackMessageSubtypeChannelTopic): + pass + SlackMessage = ( SlackMessageStandardFinal | SlackMessageMeFinal @@ -470,6 +479,7 @@ SlackMessage = ( | SlackMessageSubtypeBotAddFinal | SlackMessageSubtypeChannelJoinFinal | SlackMessageSubtypeChannelLeaveFinal + | SlackMessageSubtypeChannelTopicFinal | SlackMessageRtm ) diff --git a/typings/slack_api/slack_conversations_info.pyi b/typings/slack_api/slack_conversations_info.pyi index ff42626..7566951 100644 --- a/typings/slack_api/slack_conversations_info.pyi +++ b/typings/slack_api/slack_conversations_info.pyi @@ -4,7 +4,7 @@ from typing import Generic, List, TypeVar from slack_api.slack_common import SlackErrorResponse from slack_api.slack_conversations_history import SlackMessage -from typing_extensions import Literal, TypedDict, final +from typing_extensions import Literal, NotRequired, TypedDict, final T = TypeVar("T") @@ -76,6 +76,7 @@ class SlackConversationsInfoIm(SlackConversationsInfoCommon): unread_count_display: int is_open: bool priority: int + topic: NotRequired[SlackTopic] SlackConversationsInfoNotIm = ( SlackConversationsInfoPublic |