From 199f0f465ec81644245ef1da51bc32d4e2fcfd80 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:32:16 +0700 Subject: [PATCH] chore: update client info --- src/client/websocket/WebSocketShard.js | 3 +-- src/util/Constants.js | 2 +- src/util/Options.js | 13 +++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index dc8cbd3..d619465 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -707,10 +707,9 @@ class WebSocketShard extends EventEmitter { delete client.options.ws.properties[k]; }); const d = { + presence: client.options.presence, ...client.options.ws, - // Remove, Req by dolfies_person [Reddit]: intents: Intents.resolve(client.options.intents), token: client.token, - // Remove: shard: [this.id, Number(client.options.shardCount)], }; this.debug( diff --git a/src/util/Constants.js b/src/util/Constants.js index f944065..f320fe0 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -6,7 +6,7 @@ const Package = (exports.Package = require('../../package.json')); const { Error, RangeError, TypeError } = require('../errors'); exports.defaultUA = - 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9013 Chrome/108.0.5359.215 Electron/22.3.2 Safari/537.36'; + 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9015 Chrome/108.0.5359.215 Electron/22.3.12 Safari/537.36'; /** * Max bulk deletable message age diff --git a/src/util/Options.js b/src/util/Options.js index b92f587..d40c479 100644 --- a/src/util/Options.js +++ b/src/util/Options.js @@ -194,22 +194,23 @@ class Options extends null { sweepers: {}, proxy: '', ws: { - compress: false, + // eslint-disable-next-line no-undef + // capabilities: 16381, properties: { os: 'Windows', browser: 'Discord Client', release_channel: 'stable', - client_version: '1.0.9013', + client_version: '1.0.9015', os_version: '10.0.19045', os_arch: 'x64', system_locale: 'en-US', browser_user_agent: defaultUA, - browser_version: '22.3.2', - client_build_number: 208166, - native_build_number: 33666, + browser_version: '22.3.12', + client_build_number: 211811, + native_build_number: 34515, client_event_source: null, }, - version: 9, + compress: false, client_state: { guild_versions: {}, highest_last_message_id: '0',