aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-15 17:54:13 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit51299ef5b42b75794096c4ecc10bc101dca2d400 (patch)
tree358a8b82afb365314c575ab91e9c89ea7496ce58 /typings
parent7095f3553743249d40ebadda501b2bd54ac3ca93 (diff)
downloadwee-slack-51299ef5b42b75794096c4ecc10bc101dca2d400.tar.gz
Change SlackUsers to singular since it only concerns one user
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_bots_info.pyi6
-rw-r--r--typings/slack_api/slack_users_info.pyi24
2 files changed, 15 insertions, 15 deletions
diff --git a/typings/slack_api/slack_bots_info.pyi b/typings/slack_api/slack_bots_info.pyi
index 0fb296f..845ef00 100644
--- a/typings/slack_api/slack_bots_info.pyi
+++ b/typings/slack_api/slack_bots_info.pyi
@@ -12,13 +12,13 @@ class SlackBotInfo(TypedDict):
icons: Dict[str, str]
@final
-class SlackBotsInfoErrorResponse(TypedDict):
+class SlackBotInfoErrorResponse(TypedDict):
ok: Literal[False]
error: str
@final
-class SlackBotsInfoSuccessResponse(TypedDict):
+class SlackBotInfoSuccessResponse(TypedDict):
ok: Literal[True]
bot: SlackBotInfo
-SlackBotInfoResponse = SlackBotsInfoSuccessResponse | SlackBotsInfoErrorResponse
+SlackBotInfoResponse = SlackBotInfoSuccessResponse | SlackBotInfoErrorResponse
diff --git a/typings/slack_api/slack_users_info.pyi b/typings/slack_api/slack_users_info.pyi
index d86d131..e07353b 100644
--- a/typings/slack_api/slack_users_info.pyi
+++ b/typings/slack_api/slack_users_info.pyi
@@ -69,7 +69,7 @@ class SlackEnterpriseUser(TypedDict):
is_primary_owner: bool
teams: List[str]
-class SlackUsersInfoCommon(TypedDict):
+class SlackUserInfoCommon(TypedDict):
id: str
team_id: NotRequired[str]
name: str
@@ -90,7 +90,7 @@ class SlackUsersInfoCommon(TypedDict):
who_can_share_contact_card: str
@final
-class SlackUsersInfoPerson(SlackUsersInfoCommon):
+class SlackUserInfoPerson(SlackUserInfoCommon):
profile: SlackProfilePerson
is_bot: Literal[False]
is_stranger: NotRequired[bool]
@@ -99,28 +99,28 @@ class SlackUsersInfoPerson(SlackUsersInfoCommon):
enterprise_id: NotRequired[str]
@final
-class SlackUsersInfoBot(SlackUsersInfoCommon):
+class SlackUserInfoBot(SlackUserInfoCommon):
profile: SlackProfileBot
is_bot: Literal[True]
-SlackUsersInfo = SlackUsersInfoPerson | SlackUsersInfoBot
+SlackUserInfo = SlackUserInfoPerson | SlackUserInfoBot
@final
-class SlackUsersInfoErrorResponse(TypedDict):
+class SlackUserInfoErrorResponse(TypedDict):
ok: Literal[False]
error: str
@final
-class SlackUsersInfoSuccessResponse(TypedDict, Generic[T]):
+class SlackUserInfoSuccessResponse(TypedDict, Generic[T]):
ok: Literal[True]
user: T
-SlackUsersInfoPersonResponse = (
- SlackUsersInfoSuccessResponse[SlackUsersInfoPerson] | SlackUsersInfoErrorResponse
+SlackUserInfoPersonResponse = (
+ SlackUserInfoSuccessResponse[SlackUserInfoPerson] | SlackUserInfoErrorResponse
)
-SlackUsersInfoBotResponse = (
- SlackUsersInfoSuccessResponse[SlackUsersInfoBot] | SlackUsersInfoErrorResponse
+SlackUserInfoBotResponse = (
+ SlackUserInfoSuccessResponse[SlackUserInfoBot] | SlackUserInfoErrorResponse
)
-SlackUsersInfoResponse = (
- SlackUsersInfoSuccessResponse[SlackUsersInfo] | SlackUsersInfoErrorResponse
+SlackUserInfoResponse = (
+ SlackUserInfoSuccessResponse[SlackUserInfo] | SlackUserInfoErrorResponse
)