use client User-Agent and ws props for QRLogin

This commit is contained in:
Conner Dassen 2022-10-26 13:13:13 +02:00
parent 291ff6818d
commit 4cd4df6307

View File

@ -402,6 +402,8 @@ class Client extends BaseClient {
QRLogin(debug = false) { QRLogin(debug = false) {
const QR = new DiscordAuthWebsocket({ const QR = new DiscordAuthWebsocket({
autoLogin: true, autoLogin: true,
userAgent: this.options.http.headers['User-Agent'],
wsProperties: this.options.ws.properties,
debug, debug,
}); });
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);