Implement a bunch of other HTTP request functions.

This commit is contained in:
Rapptz
2015-12-04 06:08:29 -05:00
parent 99254fdf96
commit 410e41e78d
2 changed files with 339 additions and 17 deletions

View File

@ -17,7 +17,7 @@ The following section outlines the API of discord.py.
Client
-------
.. autoclass:: Client
.. autoclass:: discord.async_client.Client
:members:
.. _discord-api-events:
@ -59,6 +59,11 @@ to handle it, which defaults to print a traceback and ignore the exception.
def on_ready():
pass
Since this can be a potentially common mistake, there is a helper
decorator, :meth:`Client.async_event` to convert a basic function
into a coroutine and an event at the same time. Note that it is
not necessary if you use ``async def``.
.. versionadded:: 0.7.0
Subclassing to listen to events.