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)
|
@dataclass(repr=False)
|
||||||
class UserProfile(PartialUser):
|
class UserProfile(PartialUser):
|
||||||
"""Information about user's profile from BotiCord.
|
"""Information about user's profile from BotiCord.'"""
|
||||||
|
|
||||||
It has all from PartialUser and some more params: 'bots', 'servers', 'badges'"""
|
|
||||||
|
|
||||||
badges: List[UserBadge]
|
badges: List[UserBadge]
|
||||||
"""User's badges list."""
|
"""User's badges list."""
|
||||||
|
|
|
@ -1,7 +1,20 @@
|
||||||
|
.. currentmodule:: boticordpy.exceptions
|
||||||
|
|
||||||
##########################
|
##########################
|
||||||
Exceptions API Reference
|
Exceptions API Reference
|
||||||
##########################
|
##########################
|
||||||
|
|
||||||
.. automodule:: boticordpy.exceptions
|
.. autoclass:: BoticordException
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. autoclass:: InternalException
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. autoclass:: HTTPException
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. autoclass:: StatusCodes
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. autoclass:: HTTPErrors
|
||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
|
||||||
|
|
|
@ -51,3 +51,5 @@ Users
|
||||||
|
|
||||||
.. autoclass:: UserProfile
|
.. autoclass:: UserProfile
|
||||||
:members:
|
:members:
|
||||||
|
:exclude-members: to_dict
|
||||||
|
:inherited-members:
|
||||||
|
|
Loading…
Reference in a new issue