[docs] discord/client: remove reference to async_event
This commit is contained in:
parent
ec3435b224
commit
87d9eefdef
@ -763,21 +763,14 @@ class Client:
|
|||||||
|
|
||||||
The events must be a |corourl|_, if not, :exc:`ClientException` is raised.
|
The events must be a |corourl|_, if not, :exc:`ClientException` is raised.
|
||||||
|
|
||||||
Examples
|
Example
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Using the basic :meth:`event` decorator: ::
|
::
|
||||||
|
|
||||||
@client.event
|
@client.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
print('Ready!')
|
print('Ready!')
|
||||||
|
|
||||||
Saving characters by using the :meth:`async_event` decorator: ::
|
|
||||||
|
|
||||||
@client.async_event
|
|
||||||
def on_ready():
|
|
||||||
print('Ready!')
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not asyncio.iscoroutinefunction(coro):
|
if not asyncio.iscoroutinefunction(coro):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user