From 178254277680bc2c3ba46caea3ff5a8b560d2b11 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sat, 24 Jun 2023 01:45:00 +0700 Subject: [PATCH] feat: update client info --- src/rest/APIRequest.js | 4 +--- src/util/Options.js | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/rest/APIRequest.js b/src/rest/APIRequest.js index 9b57505..6ecf577 100644 --- a/src/rest/APIRequest.js +++ b/src/rest/APIRequest.js @@ -55,9 +55,7 @@ class APIRequest { ...this.client.options.http.headers, accept: '*/*', 'accept-language': 'en-US', - 'sec-ch-ua': `"Not?A_Brand";v="8", "Chromium";v="${ - /Chrome\/(\d+)/.exec(this.client.options.http.headers['User-Agent'])[1] - }"`, + 'sec-ch-ua': `"Not?A_Brand";v="8", "Chromium";v="108"`, 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', diff --git a/src/util/Options.js b/src/util/Options.js index f093ae0..b92f587 100644 --- a/src/util/Options.js +++ b/src/util/Options.js @@ -200,12 +200,12 @@ class Options extends null { browser: 'Discord Client', release_channel: 'stable', client_version: '1.0.9013', - os_version: '10.0.22621', + os_version: '10.0.19045', os_arch: 'x64', system_locale: 'en-US', browser_user_agent: defaultUA, browser_version: '22.3.2', - client_build_number: 204762, + client_build_number: 208166, native_build_number: 33666, client_event_source: null, },