mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
better docs for exceptions, UserProfile
This commit is contained in:
parent
fbef6fe29a
commit
324b70dd2e
3 changed files with 18 additions and 5 deletions
|
@ -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."""
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -51,3 +51,5 @@ Users
|
|||
|
||||
.. autoclass:: UserProfile
|
||||
:members:
|
||||
:exclude-members: to_dict
|
||||
:inherited-members:
|
||||
|
|
Loading…
Reference in a new issue