feat: add profile editing (bio, display name, stat visibility)

This commit is contained in:
2026-03-06 13:56:12 -08:00
committed by Naomi Carrigan
parent 32c13f73c4
commit 7e04daa073
11 changed files with 525 additions and 30 deletions
+10
View File
@@ -8,6 +8,8 @@ import type {
PublicProfileResponse,
SaveRequest,
SaveResponse,
UpdateProfileRequest,
UpdateProfileResponse,
} from "@elysium/types";
const BASE_URL = "/api";
@@ -79,3 +81,11 @@ export const getPublicProfile = async (
discordId: string,
): Promise<PublicProfileResponse> =>
request<PublicProfileResponse>(`/profile/${discordId}`);
export const updateProfile = async (
body: UpdateProfileRequest,
): Promise<UpdateProfileResponse> =>
request<UpdateProfileResponse>("/profile", {
method: "PUT",
body: JSON.stringify(body),
});