fix: QRLogin
This commit is contained in:
parent
b0dec151ae
commit
2cabba79f6
@ -442,7 +442,7 @@ class Client extends BaseClient {
|
|||||||
* client.QRLogin();
|
* client.QRLogin();
|
||||||
*/
|
*/
|
||||||
QRLogin(options = {}) {
|
QRLogin(options = {}) {
|
||||||
const QR = new DiscordAuthWebsocket(options);
|
const QR = new DiscordAuthWebsocket({ ...options, autoLogin: true });
|
||||||
this.emit(Events.DEBUG, `Preparing to connect to the gateway (QR Login)`, QR);
|
this.emit(Events.DEBUG, `Preparing to connect to the gateway (QR Login)`, QR);
|
||||||
return QR.connect(this);
|
return QR.connect(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user