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|
|
"""|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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user