From c4599a87ce2f6f9e938ff23ff3037053d9df50bd Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 30 Jan 2023 20:05:07 +1100 Subject: question mark. --- 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 c21a6d52..ce0bb915 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -213,7 +213,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) { const session = getMostRelevantSession(sessions); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - if (session.status == "unknown") session.status = "online"; + if (session?.status == "unknown") session.status = "online"; const user = (await User.getPublicUser(x)).toPublicUser(); // why is this needed? return Send(this, { -- cgit 1.4.1