summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-12-23 17:10:55 -0500
committerRory& <root@rory.gay>2026-01-21 07:10:11 +0100
commit26487d7f3d3380c1de814da68f23590a7ca531f3 (patch)
tree30dacd6e484586e2d9b2c5816d8ef2fa91c7d49e
parentfix being able to register with taken username (diff)
downloadserver-ts-26487d7f3d3380c1de814da68f23590a7ca531f3.tar.xz
send disclosure for pomelo
-rw-r--r--src/gateway/opcodes/Identify.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index d6f14627..8ca9f3d5 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -749,6 +749,10 @@ export async function onIdentify(this: WebSocket, data: Payload) { }); // TODO: ready supplemental + const disclosures = []; + // this tells the client the user can migrate + if (Config.get().general.uniqueUsernames) disclosures.push("pomelo"); + await Send(this, { op: OPCodes.DISPATCH, t: EVENTEnum.ReadySupplemental, @@ -763,7 +767,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { lazy_private_channels: [], guilds: readySupplementalGuilds, // { voice_states: [], id: string, embedded_activities: [] } // embedded_activities are users currently in an activity? - disclose: [], // Config.get().general.uniqueUsernames ? ["pomelo"] : [] + disclose: disclosures, }, });