mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Merge branch 'CKing-patch-3' into indev
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user