From 2cabba79f6fcb0690cd49b4ba19414fdcd150b7f Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Mon, 6 Mar 2023 12:04:18 +0700 Subject: [PATCH] fix: QRLogin --- src/client/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.js b/src/client/Client.js index fd159cd..5255e59 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -442,7 +442,7 @@ class Client extends BaseClient { * client.QRLogin(); */ 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); return QR.connect(this); }