summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-12-23 17:10:55 -0500
committerPuyodead1 <puyodead@protonmail.com>2023-12-23 17:10:55 -0500
commit2acf80acb6953a8f034bc767e371cac79b52b309 (patch)
tree94b8d9f95270c4d0e89b6b70c02f2a453549139f
parentfix being able to register with taken username (diff)
downloadserver-2acf80acb6953a8f034bc767e371cac79b52b309.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 330ce561..74bc6ab1 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -464,6 +464,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, @@ -478,7 +482,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { lazy_private_channels: [], guilds: [], // { voice_states: [], id: string, embedded_activities: [] } // embedded_activities are users currently in an activity? - disclose: [], // Config.get().general.uniqueUsernames ? ["pomelo"] : [] + disclose: disclosures, }, });