summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-07-31 20:59:06 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-07-31 20:59:06 +1000
commit45e7d763cf149e582d4394880a8788fe689064a6 (patch)
treeb020de0b297eaf71c0a08e8ae316418b9204d437 /src
parentsend empty READY_SUPPLEMENTAL for client compatibility (diff)
downloadserver-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.ts2
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: [],