mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add note about overriding Client.close vs Client.logout
This commit is contained in:
parent
c3bad4eeab
commit
ceb154718d
@ -389,6 +389,12 @@ class Client:
|
||||
"""|coro|
|
||||
|
||||
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user