Add note about overriding Client.close vs Client.logout

This commit is contained in:
Rapptz 2019-04-18 20:04:11 -04:00
parent c3bad4eeab
commit ceb154718d

View File

@ -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()