mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Actually return something
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user