[docs] Add async with documentation for Client

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

No files matched your search

+8
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