From ba78ed8e6a2c5e5d81eb7c11a2dbdaa0a177e5f6 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 12 Mar 2026 03:25:03 +0100 Subject: [PATCH] fix op43 --- src/gateway/opcodes/RequestChannelInfo.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gateway/opcodes/RequestChannelInfo.ts b/src/gateway/opcodes/RequestChannelInfo.ts index 116841f37..f0c7e9ce4 100644 --- a/src/gateway/opcodes/RequestChannelInfo.ts +++ b/src/gateway/opcodes/RequestChannelInfo.ts @@ -27,7 +27,7 @@ export async function onRequestChannelInfo(this: WebSocket, { d }: Payload) { const channels = ( await Channel.find({ - where: { type: ChannelType.GUILD_VOICE }, + where: { guild_id: d.guild_id, type: ChannelType.GUILD_VOICE }, relations: { voice_states: true, }, @@ -41,8 +41,8 @@ export async function onRequestChannelInfo(this: WebSocket, { d }: Payload) { guild_id: d.guild_id, channels: channels.map((c) => ({ id: c.id, - status: null, // TODO: we dont track this - voice_start_time: new Date().toISOString(), // TODO: we dont track this + status: d.fields.includes("status") ? null : undefined, // TODO: we dont track this + voice_start_time: d.fields.includes("voice_start_time") ? new Date().toISOString() : undefined, // TODO: we dont track this })), }, });