Binato/server/packets/RemoveFriend.ts
2023-08-20 13:03:01 +01:00

7 lines
No EOL
222 B
TypeScript

import { User } from "../objects/User";
export function RemoveFriend(user:User, friendId:number) {
user.shared.database.query("DELETE FROM friends WHERE user = ? AND friendsWith = ? LIMIT 1", [
user.id, friendId
]);
}