mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
Fixed line of code (meew0) causing logins with new creds to fail
This commit is contained in:
@@ -451,7 +451,7 @@ var InternalClient = (function () {
|
|||||||
_this9.client.emit("debug", "direct API login, cached token was unavailable");
|
_this9.client.emit("debug", "direct API login, cached token was unavailable");
|
||||||
var token = res.token;
|
var token = res.token;
|
||||||
_this9.tokenCacher.setToken(email, password, token);
|
_this9.tokenCacher.setToken(email, password, token);
|
||||||
loginWithToken(token, email, password);
|
return _this9.loginWithToken(token, email, password);
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
_this9.websocket = null;
|
_this9.websocket = null;
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ export default class InternalClient {
|
|||||||
this.client.emit("debug", "direct API login, cached token was unavailable");
|
this.client.emit("debug", "direct API login, cached token was unavailable");
|
||||||
var token = res.token;
|
var token = res.token;
|
||||||
this.tokenCacher.setToken(email, password, token);
|
this.tokenCacher.setToken(email, password, token);
|
||||||
loginWithToken(token, email, password);
|
return this.loginWithToken(token, email, password);
|
||||||
}, error => {
|
}, error => {
|
||||||
this.websocket = null;
|
this.websocket = null;
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user