diff options
| author | Rapptz <[email protected]> | 2015-12-04 06:08:29 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-04 06:08:29 -0500 |
| commit | 410e41e78d9fbea6d914c1ec713c9f82d020893f (patch) | |
| tree | c38e2c6da9d0acb61a190c6889418d4188e72b37 /docs | |
| parent | Add Forbidden and NotFound exceptions. (diff) | |
| download | discord.py-410e41e78d9fbea6d914c1ec713c9f82d020893f.tar.xz discord.py-410e41e78d9fbea6d914c1ec713c9f82d020893f.zip | |
Implement a bunch of other HTTP request functions.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api.rst | 7 |
1 files changed, 6 insertions, 1 deletions
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. |