mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Call the callback in destroy, its callback was previously unused
This commit is contained in:
@@ -94,9 +94,8 @@ export default class Client extends EventEmitter {
|
||||
// def destroy
|
||||
destroy(callback = (/*err, {}*/) => { }) {
|
||||
this.internal.logout()
|
||||
.then(() => {
|
||||
this.internal.disconnected(true);
|
||||
});
|
||||
.then(() => this.internal.disconnected(true))
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def sendMessage
|
||||
|
||||
Reference in New Issue
Block a user