mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-23 00:56:05 +00:00
[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.
|
||||
|
||||
Examples
|
||||
Example
|
||||
---------
|
||||
|
||||
Using the basic :meth:`event` decorator: ::
|
||||
|
||||
::
|
||||
@client.event
|
||||
async def on_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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user