diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index a33b212b..712460b2 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -516,6 +516,8 @@ export async function onIdentify(this: WebSocket, data: Payload) { }); const remapReadStateIdsTime = taskSw.getElapsedAndReset(); + (user.settings as any).guild_positions = []; + const d: ReadyEventData = { v: 9, application: application ? { id: application.id, flags: application.flags } : undefined, diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 63b3f55c..1648b931 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -249,7 +249,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) { if (!channels) return; } - if (!channels) throw new Error("Must provide channel ranges"); + if (!channels) /*throw new Error("Must provide channel ranges")*/ return; const channel_id = Object.keys(channels || {})[0]; if (!channel_id) return;