Binato/server/packets/UserStatsRequest.ts
2023-09-10 12:59:22 +01:00

13 lines
No EOL
360 B
TypeScript

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