fix: QRLogin

This commit is contained in:
Elysia 2023-03-06 12:04:18 +07:00
parent b0dec151ae
commit 2cabba79f6

View File

@ -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);
} }