diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-25 20:21:13 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:41:23 -0400 |
commit | 0d666732c61ce98fe775bc5c34ebbef11b839ec2 (patch) | |
tree | 82ff6d043c95c446698093cf494b1b5c946883fc /src/gateway | |
parent | oapi: root level routes (diff) | |
download | server-0d666732c61ce98fe775bc5c34ebbef11b839ec2.tar.xz |
oapi: bug fixes
Diffstat (limited to 'src/gateway')
-rw-r--r-- | src/gateway/opcodes/LazyRequest.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 64e50d92..cde91a75 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -267,7 +267,9 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) { if (!Array.isArray(ranges)) throw new Error("Not a valid Array"); const member_count = await Member.count({ where: { guild_id } }); - const ops = await Promise.all(ranges.map((x) => getMembers(guild_id, x))); + const ops = await Promise.all( + ranges.map((x) => getMembers(guild_id, x as [number, number])), + ); // TODO: unsubscribe member_events that are not in op.members |