discord-arts
Version:
Customized cards with Discord style
40 lines (39 loc) • 1.23 kB
TypeScript
export type presenceStatus = 'online' | 'idle' | 'offline' | 'dnd' | 'invisible' | 'streaming' | 'phone';
export type borderAllign = 'horizontal' | 'vertical';
export type fontStyle = 'HELVETICA' | 'NOTO_SANS' | 'ROBOTO' | 'OPEN_SANS' | 'MONTSERRAT';
export interface rankOptions {
currentXp: number;
requiredXp: number;
level: number;
rank?: number;
barColor?: string;
levelColor?: string;
autoColorRank?: boolean;
}
export interface profileOptions {
customUsername?: string;
customTag?: string;
customSubtitle?: string;
customBadges?: string[];
customBackground?: string;
overwriteBadges?: boolean;
usernameColor?: string;
tagColor?: string;
borderColor?: string | string[];
borderAllign?: borderAllign;
disableProfileTheme?: boolean;
disableBackgroundBlur?: boolean;
badgesFrame?: boolean;
removeBadges?: boolean;
removeBorder?: boolean;
presenceStatus?: presenceStatus;
squareAvatar?: boolean;
moreBackgroundBlur?: boolean;
backgroundBrightness?: number;
customDate?: Date | string;
localDateType?: string;
removeAvatarFrame?: boolean;
rankData?: rankOptions;
font?: fontStyle;
customFont?: string;
}