Update APIRequest.js
This commit is contained in:
parent
ca50d03688
commit
10ac0c6c6a
@ -60,6 +60,11 @@ class APIRequest {
|
|||||||
'User-Agent': this.client.options.http.headers['User-Agent'],
|
'User-Agent': this.client.options.http.headers['User-Agent'],
|
||||||
Referer: 'https://discord.com/channels/@me',
|
Referer: 'https://discord.com/channels/@me',
|
||||||
Connection: 'keep-alive',
|
Connection: 'keep-alive',
|
||||||
|
'sec-ch-ua-mobile': '?0',
|
||||||
|
'sec-ch-ua-platform': 'Windows',
|
||||||
|
'sec-ch-ua': `"Not?A_Brand";v="8", "Chromium";v="${
|
||||||
|
/Chrome\/(\d+)/.exec(this.client.options.http.headers['User-Agent'])[1]
|
||||||
|
}"`,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.options.auth !== false) headers.Authorization = this.rest.getAuth();
|
if (this.options.auth !== false) headers.Authorization = this.rest.getAuth();
|
||||||
|
Loading…
Reference in New Issue
Block a user