diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-15 17:54:13 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 51299ef5b42b75794096c4ecc10bc101dca2d400 (patch) | |
tree | 358a8b82afb365314c575ab91e9c89ea7496ce58 /slack/slack_api.py | |
parent | 7095f3553743249d40ebadda501b2bd54ac3ca93 (diff) | |
download | wee-slack-51299ef5b42b75794096c4ecc10bc101dca2d400.tar.gz |
Change SlackUsers to singular since it only concerns one user
Diffstat (limited to 'slack/slack_api.py')
-rw-r--r-- | slack/slack_api.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slack/slack_api.py b/slack/slack_api.py index 081a2f4..b13d27c 100644 --- a/slack/slack_api.py +++ b/slack/slack_api.py @@ -13,7 +13,7 @@ if TYPE_CHECKING: from slack_api.slack_conversations_info import SlackConversationsInfoResponse from slack_api.slack_rtm_connect import SlackRtmConnectResponse from slack_api.slack_users_conversations import SlackUsersConversationsResponse - from slack_api.slack_users_info import SlackUsersInfoResponse + from slack_api.slack_users_info import SlackUserInfoResponse from slack.slack_conversation import SlackConversation from slack.slack_user import SlackBot, SlackUser @@ -87,8 +87,8 @@ class SlackApi: pages, ) - async def fetch_users_info(self, user: SlackUser) -> SlackUsersInfoResponse: + async def fetch_user_info(self, user: SlackUser) -> SlackUserInfoResponse: return await self._fetch("users.info", {"user": user.id}) - async def fetch_bots_info(self, bot: SlackBot) -> SlackBotInfoResponse: + async def fetch_bot_info(self, bot: SlackBot) -> SlackBotInfoResponse: return await self._fetch("bots.info", {"bot": bot.id}) |