diff options
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 |