From e101a948c48a4187f5a57093e1f4ca95c6804ff3 Mon Sep 17 00:00:00 2001 From: grey-cat-1908 Date: Sat, 26 Feb 2022 19:01:36 +0300 Subject: [PATCH] v2.1.0 (client http fixes) --- boticordpy/__init__.py | 2 +- boticordpy/client.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/boticordpy/__init__.py b/boticordpy/__init__.py index f74a826..8157c2b 100644 --- a/boticordpy/__init__.py +++ b/boticordpy/__init__.py @@ -10,7 +10,7 @@ __title__ = 'boticordpy' __author__ = 'Marakarka' __license__ = 'MIT' __copyright__ = 'Copyright 2022 Marakarka' -__version__ = '2.0.3' +__version__ = '2.1.0' from .client import BoticordClient from .webhook import Webhook diff --git a/boticordpy/client.py b/boticordpy/client.py index 79ad978..244721b 100644 --- a/boticordpy/client.py +++ b/boticordpy/client.py @@ -115,7 +115,7 @@ class BoticordClient: :obj:`dict`: Boticord API Response. """ - response = await self.post_server_stats(payload) + response = await self.http.post_server_stats(payload) return response async def get_user_info(self, user_id: int) -> boticord_types.UserProfile: @@ -129,7 +129,7 @@ class BoticordClient: :obj:`~.types.UserProfile`: User Profile object. """ - response = await self.get_user_info(user_id) + response = await self.http.get_user_info(user_id) return boticord_types.UserProfile(**response) async def get_user_comments(self, user_id: int) -> boticord_types.UserComments: @@ -143,7 +143,7 @@ class BoticordClient: :obj:`~.types.UserComments`: User comments on Bots and Servers pages. """ - response = await self.get_user_comments(user_id) + response = await self.http.get_user_comments(user_id) return boticord_types.UserComments(**response) async def get_user_bots(self, user_id: int) -> list: @@ -157,7 +157,7 @@ class BoticordClient: :obj:`list` [ :obj:`~.types.SimpleBot` ]: List of simple information about users bots. """ - response = await self.get_user_bots(user_id) + response = await self.http.get_user_bots(user_id) return [boticord_types.SimpleBot(**bot) for bot in response] def autopost(self) -> AutoPost: