Update APIRequest.js

This commit is contained in:
Elysia 2023-03-29 23:59:40 +07:00
parent ca50d03688
commit 10ac0c6c6a

View File

@ -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();