mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 04:00:42 +00:00
Actually return something
This commit is contained in:
parent
6cd0561014
commit
293f416e15
2 changed files with 2 additions and 2 deletions
|
|
@ -672,7 +672,7 @@ var InternalClient = (function () {
|
||||||
if (!this.user.bot) {
|
if (!this.user.bot) {
|
||||||
return this.apiRequest("post", _Constants.Endpoints.LOGOUT, true).then(disconnect);
|
return this.apiRequest("post", _Constants.Endpoints.LOGOUT, true).then(disconnect);
|
||||||
} else {
|
} else {
|
||||||
disconnect();
|
return disconnect();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -571,7 +571,7 @@ export default class InternalClient {
|
||||||
return this.apiRequest("post", Endpoints.LOGOUT, true)
|
return this.apiRequest("post", Endpoints.LOGOUT, true)
|
||||||
.then(disconnect);
|
.then(disconnect);
|
||||||
} else {
|
} else {
|
||||||
disconnect();
|
return disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue