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 RemoveFriend(user:User, friendId:number) {
|
|
|
|
await user.shared.database.execute("DELETE FROM friends WHERE user = ? AND friendsWith = ? LIMIT 1", [
|
2023-08-20 13:03:01 +01:00
|
|
|
user.id, friendId
|
|
|
|
]);
|
|
|
|
}
|