mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 02:23:04 +00:00
Add note about overriding Client.close vs Client.logout
This commit is contained in:
@@ -389,6 +389,12 @@ class Client:
|
|||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Logs out of Discord and closes all connections.
|
Logs out of Discord and closes all connections.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This is just an alias to :meth:`close`. If you want
|
||||||
|
to do extraneous cleanup when subclassing, it is suggested
|
||||||
|
to override :meth:`close` instead.
|
||||||
"""
|
"""
|
||||||
await self.close()
|
await self.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user