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