mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-09 15:29:57 +00:00
Improve the example for abc.Messageable.typing
This commit is contained in:
parent
71fe40aafa
commit
cc8a86a4bd
@ -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!')
|
||||
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user