Binato/server/packets/UserStatsRequest.ts

13 lines
368 B
TypeScript
Raw Normal View History

2022-11-19 01:06:03 +00:00
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);
}
}