diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-30 20:05:07 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-30 20:05:07 +1100 |
commit | ac51849f2845fcad51b5c22ec27bb7298eb24bb4 (patch) | |
tree | 60298eeb2d7d1dbb48dc8b19e670a543b39ecf14 | |
parent | Impl member lazy request (#970) (diff) | |
download | server-ac51849f2845fcad51b5c22ec27bb7298eb24bb4.tar.xz |
question mark.
-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, { |