Binato/server/packets/UserStatsRequest.ts

13 lines
362 B
TypeScript
Raw Permalink Normal View History

2023-09-10 12:59:22 +01:00
import User from "../objects/User";
import StatusUpdate from "./StatusUpdate";
import UserPresence from "./UserPresence";
import UserPresenceBundle from "./UserPresenceBundle";
2022-11-19 01:06:03 +00:00
2023-09-10 12:59:22 +01:00
export default function UserStatsRequest(user:User, data:Array<number>) {
2022-11-19 01:06:03 +00:00
UserPresenceBundle(user);
for (const id of data) {
2022-11-19 01:06:03 +00:00
UserPresence(user, id);
StatusUpdate(user, id);
}
}