mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-04 22:42:21 +00:00
[docs] Add async with documentation for Client
Co-authored-by: Rapptz <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1f053e0a32
commit
5d1b63bfee
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user