mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 14:11:09 +00:00
Merge branch 'CKing-patch-3' into indev
This commit is contained in:
commit
345d0da72b
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ export default class Client extends EventEmitter {
|
|||
|
||||
// def destroy
|
||||
destroy(callback = (/*err, {}*/) => { }) {
|
||||
this.internal.logout()
|
||||
return this.internal.logout()
|
||||
.then(() => this.internal.disconnected(true))
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue