Files
artcraft/packages/components/src/api/_common/UserDetailsLight.ts
T
2023-10-18 04:18:43 -04:00

18 lines
437 B
TypeScript

/// A common type returned by several endpoints.
/// Basic information to display a user and their avatar.
export interface UserDetailsLight {
user_token: string,
/// Username (lowercase)
username: string,
/// Username with user-specified capitalization
display_name: string,
gravatar_hash: string,
default_avatar: DefaultAvatarInfo,
}
export interface DefaultAvatarInfo {
image_index: number,
color_index: number,
}