From 4cd4df63078a044a59aa8557cc6ac3be2e3961b8 Mon Sep 17 00:00:00 2001 From: Conner Dassen Date: Wed, 26 Oct 2022 13:13:13 +0200 Subject: [PATCH] use client User-Agent and ws props for QRLogin --- src/client/Client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/Client.js b/src/client/Client.js index c461217..5bcd1ef 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -402,6 +402,8 @@ class Client extends BaseClient { QRLogin(debug = false) { const QR = new DiscordAuthWebsocket({ autoLogin: true, + userAgent: this.options.http.headers['User-Agent'], + wsProperties: this.options.ws.properties, debug, }); this.emit(Events.DEBUG, `Preparing to connect to the gateway (QR Login)`, QR);