Binato/server/packets/AddFriend.ts

7 lines
210 B
TypeScript
Raw Normal View History

2023-08-20 13:03:01 +01:00
import { User } from "../objects/User";
export function AddFriend(user:User, friendId:number) {
user.shared.database.query("INSERT INTO friends (user, friendsWith) VALUES (?, ?)", [
user.id, friendId
]);
}