[docs] Add async with documentation for Client

Co-authored-by: Rapptz <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
James Hilton-Balfe
2022-06-12 21:06:44 +01:00
committed by GitHub
parent 1f053e0a32
commit 5d1b63bfee
3 changed files with 32 additions and 0 deletions

View File

@ -308,6 +308,14 @@ class AutoShardedClient(Client):
if this is used. By default, when omitted, the client will launch shards from
0 to ``shard_count - 1``.
.. container:: operations
.. describe:: async with x
Asynchronously initialises the client and automatically.
.. versionadded:: 2.0
Attributes
------------
shard_ids: Optional[List[:class:`int`]]