Binato/server/packets/UserStatsRequest.ts
2022-11-19 01:06:03 +00:00

13 lines
No EOL
368 B
TypeScript

import { User } from "../objects/User";
import { StatusUpdate } from "./StatusUpdate";
import { UserPresence } from "./UserPresence";
import { UserPresenceBundle } from "./UserPresenceBundle";
export function UserStatsRequest(user:User, data:Array<number>) {
UserPresenceBundle(user);
for (let id of data) {
UserPresence(user, id);
StatusUpdate(user, id);
}
}