diff options
Diffstat (limited to 'src/gateway/opcodes/LazyRequest.ts')
-rw-r--r-- | src/gateway/opcodes/LazyRequest.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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, { |