oapi: bug fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user