use client User-Agent and ws props for QRLogin
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user