v2.1.0 (client http fixes)

This commit is contained in:
grey-cat-1908 2022-02-26 19:01:36 +03:00
parent 1582434a3e
commit e101a948c4
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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: