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:
parent
4c0b1391b1
commit
45e7d763cf
@ -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: [],
|
||||
|
Loading…
Reference in New Issue
Block a user