diff options
| author | bmintz <[email protected]> | 2018-07-10 19:20:16 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-07-19 21:27:30 -0400 |
| commit | 87d9eefdefb2b7f4f32f2a35b65e804dcdcfcf1f (patch) | |
| tree | 544558c6f591f7347667af5912249ec6b3378fee | |
| parent | Remove remaining asyncio.coroutine calls. (diff) | |
| download | discord.py-87d9eefdefb2b7f4f32f2a35b65e804dcdcfcf1f.tar.xz discord.py-87d9eefdefb2b7f4f32f2a35b65e804dcdcfcf1f.zip | |
[docs] discord/client: remove reference to async_event
| -rw-r--r-- | discord/client.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/discord/client.py b/discord/client.py index 9bf6bc59..2841ed2f 100644 --- a/discord/client.py +++ b/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): |