aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/abc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 5471b336..57d3f4c2 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -1310,10 +1310,11 @@ class Messageable(Protocol):
This means that both ``with`` and ``async with`` work with this.
Example Usage: ::
+ async with channel.typing():
+ # stimulate something heavy
+ await asyncio.sleep(10)
- async with channel.typing():
- # do expensive stuff here
- await channel.send('done!')
+ await channel.send('done!')
"""
return Typing(self)