summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-12 03:25:03 +0100
committerRory& <root@rory.gay>2026-03-12 03:25:03 +0100
commitba78ed8e6a2c5e5d81eb7c11a2dbdaa0a177e5f6 (patch)
tree8fb1558b7c6aaa37e9470518479b9a7f6dee666b /src
parentGateway: implement op43 (diff)
downloadserver-ts-ba78ed8e6a2c5e5d81eb7c11a2dbdaa0a177e5f6.tar.xz
fix op43
Diffstat (limited to 'src')
-rw-r--r--src/gateway/opcodes/RequestChannelInfo.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gateway/opcodes/RequestChannelInfo.ts b/src/gateway/opcodes/RequestChannelInfo.ts

index 116841f3..f0c7e9ce 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 })), }, });