diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-07-31 20:59:06 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-07-31 20:59:06 +1000 |
commit | 45e7d763cf149e582d4394880a8788fe689064a6 (patch) | |
tree | b020de0b297eaf71c0a08e8ae316418b9204d437 /src | |
parent | send empty READY_SUPPLEMENTAL for client compatibility (diff) | |
download | server-45e7d763cf149e582d4394880a8788fe689064a6.tar.xz |
lazyrequest dont crash when no members can be found in lazyrequest
Diffstat (limited to 'src')
-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 77e1a25a..4ad1ae7b 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -95,7 +95,7 @@ async function getMembers(guild_id: string, range: [number, number]) { console.error(`LazyRequest`, e); } - if (!members) { + if (!members || !members.length) { return { items: [], groups: [], |