summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-13 09:34:21 +0100
committerRory& <root@rory.gay>2026-03-13 09:34:21 +0100
commitfc5716ea770fe3e620011fc1fcc3ba65136d5a01 (patch)
treec10ee8aa06d3b47147eae357e279fe03033c89a7
parentnix: fix wrappers (diff)
downloadserver-ts-fc5716ea770fe3e620011fc1fcc3ba65136d5a01.tar.xz
identify: use proto toVoiceState
-rw-r--r--src/gateway/opcodes/Identify.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index d5b47dcd..65c54ae0 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -811,7 +811,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { const readySupplementalGuilds = (guilds.filter((guild) => !guild.unavailable) as Guild[]).map((guild) => { return { - voice_states: guild.voice_states.map((state) => state.toPublicVoiceState()), + voice_states: guild.voice_states.map((state) => VoiceState.prototype.toPublicVoiceState.apply(state)), id: guild.id, embedded_activities: [], };