mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 12:11:11 +00:00
Call the callback in destroy, its callback was previously unused
This commit is contained in:
parent
a0ffbdb208
commit
2c565ebfaf
1 changed files with 2 additions and 3 deletions
|
|
@ -94,9 +94,8 @@ export default class Client extends EventEmitter {
|
||||||
// def destroy
|
// def destroy
|
||||||
destroy(callback = (/*err, {}*/) => { }) {
|
destroy(callback = (/*err, {}*/) => { }) {
|
||||||
this.internal.logout()
|
this.internal.logout()
|
||||||
.then(() => {
|
.then(() => this.internal.disconnected(true))
|
||||||
this.internal.disconnected(true);
|
.then(dataCallback(callback), errorCallback(callback));
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// def sendMessage
|
// def sendMessage
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue