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