mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +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
|
// def destroy
|
||||||
destroy(callback = (/*err, {}*/) => { }) {
|
destroy(callback = (/*err, {}*/) => { }) {
|
||||||
this.internal.logout()
|
return this.internal.logout()
|
||||||
.then(() => this.internal.disconnected(true))
|
.then(() => this.internal.disconnected(true))
|
||||||
.then(dataCallback(callback), errorCallback(callback));
|
.then(dataCallback(callback), errorCallback(callback));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue