1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

lazyrequest dont crash when no members can be found in lazyrequest

This commit is contained in:
Madeline 2023-07-31 20:59:06 +10:00
parent 4c0b1391b1
commit 45e7d763cf
No known key found for this signature in database
GPG Key ID: 80D25DA3BCB24281

View File

@ -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: [],