Add an exposed way to extract shard-specific information.

Closes #2654
This commit is contained in:
Rapptz
2020-07-25 09:37:48 -04:00
parent a42bebe581
commit 7ed26db3b3
3 changed files with 104 additions and 16 deletions

View File

@ -2756,7 +2756,7 @@ Data Classes
Some classes are just there to be data containers, this lists them.
Unlike :ref:`models <discord_api_models>` you are allowed to create
these yourself, even if they can also be used to hold attributes.
most of these yourself, even if they can also be used to hold attributes.
Nearly all classes here have :ref:`py:slots` defined which means that it is
impossible to have dynamic attributes to the data classes.
@ -2837,22 +2837,28 @@ PermissionOverwrite
.. autoclass:: PermissionOverwrite
:members:
ShardInfo
~~~~~~~~~~~
.. autoclass:: ShardInfo()
:members:
SystemChannelFlags
~~~~~~~~~~~~~~~~~~~~
.. autoclass:: SystemChannelFlags
.. autoclass:: SystemChannelFlags()
:members:
MessageFlags
~~~~~~~~~~~~
.. autoclass:: MessageFlags
.. autoclass:: MessageFlags()
:members:
PublicUserFlags
~~~~~~~~~~~~~~~
.. autoclass:: PublicUserFlags
.. autoclass:: PublicUserFlags()
:members: