Browse Source

[docs] discord/client: remove reference to async_event

pull/1441/head
bmintz 7 years ago
committed by Rapptz
parent
commit
87d9eefdef
  1. 11
      discord/client.py

11
discord/client.py

@ -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…
Cancel
Save