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

7 lines
No EOL
226 B
TypeScript

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