mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-28 15:59:04 +00:00
Improve the example for abc.Messageable.typing
This commit is contained in:
1 parent
71fe40aafa
commit
cc8a86a4bd
1 file changed
+3
-2
+3
-2
@@ -1310,9 +1310,10 @@ class Messageable(Protocol):
|
||||
This means that both ``with`` and ``async with`` work with this.
|
||||
|
||||
Example Usage: ::
|
||||
|
||||
async with channel.typing():
|
||||
# do expensive stuff here
|
||||
# stimulate something heavy
|
||||
await asyncio.sleep(10)
|
||||
|
||||
await channel.send('done!')
|
||||
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user