aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py11
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):