summary refs log tree commit diff
diff options
context:
space:
mode:
authordank074 <torresefrain10@gmail.com>2026-03-06 03:34:00 -0600
committerRory& <root@rory.gay>2026-03-07 01:38:45 +0100
commite843d499ec299be12e72f7639a5d19f1aa365ceb (patch)
tree72d5d335d54541ad980a15f4d38fc7d92544cdad
parentFix guild settings not using .save, nor beign awaited (diff)
downloadserver-ts-e843d499ec299be12e72f7639a5d19f1aa365ceb.tar.xz
gateway should not crash for clients that send Op 37 with missing channel ranges, instead ignore
-rw-r--r--src/gateway/opcodes/LazyRequest.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts

index 4b916ac6..ab58368d 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts
@@ -212,7 +212,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) { if (!channels) return; } - if (!channels) throw new Error("Must provide channel ranges"); + if (!channels) return; const channel_id = Object.keys(channels || {})[0]; if (!channel_id) return;