Browse Source

Improve the example for abc.Messageable.typing

pull/6948/head
MrKomodoDragon 4 years ago
committed by GitHub
parent
commit
cc8a86a4bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      discord/abc.py

5
discord/abc.py

@ -1310,9 +1310,10 @@ class Messageable(Protocol):
This means that both ``with`` and ``async with`` work with this. This means that both ``with`` and ``async with`` work with this.
Example Usage: :: Example Usage: ::
async with channel.typing(): async with channel.typing():
# do expensive stuff here # stimulate something heavy
await asyncio.sleep(10)
await channel.send('done!') await channel.send('done!')
""" """

Loading…
Cancel
Save