diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-11 14:32:30 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-11 14:32:30 +1100 |
commit | 942aab7e0283672acea33922a5f55246af7dbb44 (patch) | |
tree | 9bab24549936ed85106a1fb2ccda6d043fb9d2b6 | |
parent | Add sentry close to sigterm handler (diff) | |
download | server-942aab7e0283672acea33922a5f55246af7dbb44.tar.xz |
https://discord.com/channels/806142446094385153/898197424340860928/1062404340427534446
-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 f5bee864..a3bac6e9 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -111,7 +111,7 @@ async function getMembers(guild_id: string, range: [number, number]) { var session: Session | undefined = sessions.first(); if (session?.status == "offline") { - session.status = member.user.settings.status || "online"; + session.status = member?.user?.settings?.status || "online"; } const item = { |