2023-09-10 12:59:22 +01:00
|
|
|
import User from "../objects/User";
|
2023-08-20 13:03:01 +01:00
|
|
|
|
2023-10-04 15:10:38 +01:00
|
|
|
export default async function AddFriend(user:User, friendId:number) {
|
|
|
|
await user.shared.database.execute("INSERT INTO friends (user, friendsWith) VALUES (?, ?)", [
|
2023-08-20 13:03:01 +01:00
|
|
|
user.id, friendId
|
|
|
|
]);
|
|
|
|
}
|