mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
v2.1.0 (client http fixes)
This commit is contained in:
parent
1582434a3e
commit
e101a948c4
2 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ __title__ = 'boticordpy'
|
||||||
__author__ = 'Marakarka'
|
__author__ = 'Marakarka'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__copyright__ = 'Copyright 2022 Marakarka'
|
__copyright__ = 'Copyright 2022 Marakarka'
|
||||||
__version__ = '2.0.3'
|
__version__ = '2.1.0'
|
||||||
|
|
||||||
from .client import BoticordClient
|
from .client import BoticordClient
|
||||||
from .webhook import Webhook
|
from .webhook import Webhook
|
||||||
|
|
|
@ -115,7 +115,7 @@ class BoticordClient:
|
||||||
:obj:`dict`:
|
:obj:`dict`:
|
||||||
Boticord API Response.
|
Boticord API Response.
|
||||||
"""
|
"""
|
||||||
response = await self.post_server_stats(payload)
|
response = await self.http.post_server_stats(payload)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
async def get_user_info(self, user_id: int) -> boticord_types.UserProfile:
|
async def get_user_info(self, user_id: int) -> boticord_types.UserProfile:
|
||||||
|
@ -129,7 +129,7 @@ class BoticordClient:
|
||||||
:obj:`~.types.UserProfile`:
|
:obj:`~.types.UserProfile`:
|
||||||
User Profile object.
|
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)
|
return boticord_types.UserProfile(**response)
|
||||||
|
|
||||||
async def get_user_comments(self, user_id: int) -> boticord_types.UserComments:
|
async def get_user_comments(self, user_id: int) -> boticord_types.UserComments:
|
||||||
|
@ -143,7 +143,7 @@ class BoticordClient:
|
||||||
:obj:`~.types.UserComments`:
|
:obj:`~.types.UserComments`:
|
||||||
User comments on Bots and Servers pages.
|
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)
|
return boticord_types.UserComments(**response)
|
||||||
|
|
||||||
async def get_user_bots(self, user_id: int) -> list:
|
async def get_user_bots(self, user_id: int) -> list:
|
||||||
|
@ -157,7 +157,7 @@ class BoticordClient:
|
||||||
:obj:`list` [ :obj:`~.types.SimpleBot` ]:
|
:obj:`list` [ :obj:`~.types.SimpleBot` ]:
|
||||||
List of simple information about users bots.
|
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]
|
return [boticord_types.SimpleBot(**bot) for bot in response]
|
||||||
|
|
||||||
def autopost(self) -> AutoPost:
|
def autopost(self) -> AutoPost:
|
||||||
|
|
Loading…
Reference in a new issue