From e843d499ec299be12e72f7639a5d19f1aa365ceb Mon Sep 17 00:00:00 2001 From: dank074 Date: Fri, 6 Mar 2026 03:34:00 -0600 Subject: [PATCH] gateway should not crash for clients that send Op 37 with missing channel ranges, instead ignore --- src/gateway/opcodes/LazyRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 4b916ac6f..ab58368dd 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;