mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Implement a bunch of other HTTP request functions.
This commit is contained in:
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user