feat: update client info

This commit is contained in:
Elysia 2023-06-24 01:45:00 +07:00
parent 390463e115
commit 1782542776
2 changed files with 3 additions and 5 deletions

View File

@ -55,9 +55,7 @@ class APIRequest {
...this.client.options.http.headers, ...this.client.options.http.headers,
accept: '*/*', accept: '*/*',
'accept-language': 'en-US', 'accept-language': 'en-US',
'sec-ch-ua': `"Not?A_Brand";v="8", "Chromium";v="${ 'sec-ch-ua': `"Not?A_Brand";v="8", "Chromium";v="108"`,
/Chrome\/(\d+)/.exec(this.client.options.http.headers['User-Agent'])[1]
}"`,
'sec-ch-ua-mobile': '?0', 'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"', 'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty', 'sec-fetch-dest': 'empty',

View File

@ -200,12 +200,12 @@ class Options extends null {
browser: 'Discord Client', browser: 'Discord Client',
release_channel: 'stable', release_channel: 'stable',
client_version: '1.0.9013', client_version: '1.0.9013',
os_version: '10.0.22621', os_version: '10.0.19045',
os_arch: 'x64', os_arch: 'x64',
system_locale: 'en-US', system_locale: 'en-US',
browser_user_agent: defaultUA, browser_user_agent: defaultUA,
browser_version: '22.3.2', browser_version: '22.3.2',
client_build_number: 204762, client_build_number: 208166,
native_build_number: 33666, native_build_number: 33666,
client_event_source: null, client_event_source: null,
}, },