forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB078b459Burak Boduroğlu2 months ago671 commits

patchMyPreferences.ts13 lines, 454 bytesHistoryRawDownload
1import { client } from "../client";
2import type { User, UserLanguage, UserTheme } from "../client";
3
4export type PatchMyPreferencesBody = {
5 theme?: UserTheme;
6 language?: UserLanguage;
7 // Accent color: "#rrggbb" to set, "" to clear back to null, omit to keep.
8 palette_color?: string;
9};
10
11export function patchMyPreferences(body: PatchMyPreferencesBody): Promise<User> {
12 return client<User>("/users/me/preferences", { method: "PATCH", body });
13}