Browse Source

Add note about overriding Client.close vs Client.logout

pull/2103/head
Rapptz 6 years ago
parent
commit
ceb154718d
  1. 6
      discord/client.py

6
discord/client.py

@ -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…
Cancel
Save