mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 03:31:03 +00:00
parent
293f416e15
commit
1672465768
1 changed files with 8 additions and 0 deletions
|
|
@ -185,6 +185,14 @@ logout(`callback`)
|
||||||
|
|
||||||
Logs the client out and closes the WebSocket connections.
|
Logs the client out and closes the WebSocket connections.
|
||||||
|
|
||||||
|
- **callback** - `function` that takes the following parameter:
|
||||||
|
- **error** - An error if any occurred
|
||||||
|
|
||||||
|
destroy(`callback`)
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Similar to logout but should be used if you're not going to create the Client again later in your program.
|
||||||
|
|
||||||
- **callback** - `function` that takes the following parameter:
|
- **callback** - `function` that takes the following parameter:
|
||||||
- **error** - An error if any occurred
|
- **error** - An error if any occurred
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue