[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

@@ -117,6 +117,14 @@ class Client:
r"""Represents a client connection that connects to Discord.
This class is used to interact with the Discord WebSocket and API.
.. container:: operations
.. describe:: async with x
Asynchronously initialises the client and automatically cleans up.
.. versionadded:: 2.0
A number of options can be passed to the :class:`Client`.
Parameters