summary refs log tree commit diff
path: root/src/gateway/opcodes/StreamCreate.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-08 17:46:40 +0100
committerRory& <root@rory.gay>2026-03-20 18:17:41 +0100
commit9597ebe941a95c18b57fe72c8b667981d1b7d6ea (patch)
tree17be6e5fab37a39b7570fb3c6509757e9a3b48ea /src/gateway/opcodes/StreamCreate.ts
parentMigrate Invite*Event to satisfies, part of #1577 (diff)
downloadserver-ts-9597ebe941a95c18b57fe72c8b667981d1b7d6ea.tar.xz
Migrate VoiceS*Event to satisfies, part of #1577
Diffstat (limited to 'src/gateway/opcodes/StreamCreate.ts')
-rw-r--r--src/gateway/opcodes/StreamCreate.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gateway/opcodes/StreamCreate.ts b/src/gateway/opcodes/StreamCreate.ts

index cd3c4b77..69d4619d 100644 --- a/src/gateway/opcodes/StreamCreate.ts +++ b/src/gateway/opcodes/StreamCreate.ts
@@ -108,10 +108,13 @@ export async function onStreamCreate(this: WebSocket, data: Payload) { await emitEvent({ event: "VOICE_STATE_UPDATE", - data: voiceState.toPublicVoiceState(), + data: { + ...voiceState.toPublicVoiceState(), + member: voiceState.member.toPublicMember(), + }, guild_id: voiceState.guild_id, channel_id: voiceState.channel_id, - } as VoiceStateUpdateEvent); + } satisfies VoiceStateUpdateEvent); console.log(`[Gateway/${this.user_id}] STREAM_CREATE for user ${this.user_id} in channel ${body.channel_id} with stream key ${streamKey} in ${Date.now() - startTime}ms`); }