mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 15:11:32 +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) {
|
||||
return this.apiRequest("post", _Constants.Endpoints.LOGOUT, true).then(disconnect);
|
||||
} else {
|
||||
disconnect();
|
||||
return disconnect();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -571,7 +571,7 @@ export default class InternalClient {
|
|||
return this.apiRequest("post", Endpoints.LOGOUT, true)
|
||||
.then(disconnect);
|
||||
} else {
|
||||
disconnect();
|
||||
return disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue