diff --git a/discord/client.py b/discord/client.py index 9bf6bc59f..2841ed2f2 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):