Optional members and shards

This commit is contained in:
MadCat9958 2023-07-01 22:49:28 +03:00
parent 7aff87636b
commit 7409b21fab

View file

@ -55,8 +55,8 @@ class BoticordClient:
bot_id: typing.Union[str, int], bot_id: typing.Union[str, int],
*, *,
servers: int = 0, servers: int = 0,
shards: int = 0, shards: typing.Optional[int] = None,
users: int = 0, users: typing.Optional[int] = None,
) -> boticord_types.ResourceBot: ) -> boticord_types.ResourceBot:
"""Post Bot's stats. """Post Bot's stats.
@ -65,9 +65,9 @@ class BoticordClient:
Id of the bot to post stats of. Id of the bot to post stats of.
servers ( :obj:`int` ) servers ( :obj:`int` )
Bot's servers count Bot's servers count
shards ( :obj:`int` ) shards ( Optional[:obj:`int`] )
Bot's shards count Bot's shards count
users ( :obj:`int` ) users ( Optional[:obj:`int`] )
Bot's users count Bot's users count
Returns: Returns: