From 410e41e78d9fbea6d914c1ec713c9f82d020893f Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 4 Dec 2015 06:08:29 -0500 Subject: Implement a bunch of other HTTP request functions. --- docs/api.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/api.rst b/docs/api.rst index f9853b6d..cc298903 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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. -- cgit v1.2.3