mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
Document discord.__version__ and discord.version_info
This commit is contained in:
parent
2bf527334f
commit
5335f468d2
18
docs/api.rst
18
docs/api.rst
@ -13,6 +13,24 @@ The following section outlines the API of discord.py.
|
|||||||
more information on how to set up and use the logging module with
|
more information on how to set up and use the logging module with
|
||||||
discord.py.
|
discord.py.
|
||||||
|
|
||||||
|
Version Related Info
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
There are two main ways to query version information about the library.
|
||||||
|
|
||||||
|
.. data:: version_info
|
||||||
|
|
||||||
|
A named tuple that is similar to `sys.version_info`_.
|
||||||
|
|
||||||
|
Just like `sys.version_info`_ the valid values for ``releaselevel`` are
|
||||||
|
'alpha', 'beta', 'candidate' and 'final'.
|
||||||
|
|
||||||
|
.. _sys.version_info: https://docs.python.org/3.5/library/sys.html#sys.version_info
|
||||||
|
|
||||||
|
.. data:: __version__
|
||||||
|
|
||||||
|
A string representation of the version. e.g. ``'0.10.0-alpha0'``.
|
||||||
|
|
||||||
|
|
||||||
Client
|
Client
|
||||||
-------
|
-------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user