better docs for exceptions, UserProfile

This commit is contained in:
grey-cat-1908 2023-06-04 13:40:59 +03:00
parent fbef6fe29a
commit 324b70dd2e
3 changed files with 18 additions and 5 deletions

View file

@ -817,9 +817,7 @@ class ResourceBot(APIObjectBase):
@dataclass(repr=False)
class UserProfile(PartialUser):
"""Information about user's profile from BotiCord.
It has all from PartialUser and some more params: 'bots', 'servers', 'badges'"""
"""Information about user's profile from BotiCord.'"""
badges: List[UserBadge]
"""User's badges list."""

View file

@ -1,7 +1,20 @@
.. currentmodule:: boticordpy.exceptions
##########################
Exceptions API Reference
##########################
.. automodule:: boticordpy.exceptions
.. autoclass:: BoticordException
:members:
.. autoclass:: InternalException
:members:
.. autoclass:: HTTPException
:members:
.. autoclass:: StatusCodes
:members:
.. autoclass:: HTTPErrors
:members:
:inherited-members:

View file

@ -51,3 +51,5 @@ Users
.. autoclass:: UserProfile
:members:
:exclude-members: to_dict
:inherited-members: