feat: add discord rich presence editor window and interactive embed preview

This commit is contained in:
HorizonCode committed 2026-10-31 17:59:07 +01:00
1 parent e3abea8d83
commit 386c829455
30 files changed
+4102 -263

No files matched your search

+2 -2
View File
@@ -76,12 +76,12 @@ export const THEME_ICON_NAMES = [
'volume-off',
] as const;
export type ThemeIconName = (typeof THEME_ICON_NAMES)[number];
export type ThemeIconName = (typeof THEME_ICON_NAMES)[number] | (string & {});
const ICON_NAME_SET = new Set<string>(THEME_ICON_NAMES);
export const isThemeIconName = (value: unknown): value is ThemeIconName =>
typeof value === 'string' && ICON_NAME_SET.has(value);
typeof value === 'string' && value.trim().length > 0 && value.length <= 120;
/** A small representative row used by the editor's live icon preview. */
export const THEME_ICON_PREVIEW_NAMES: ThemeIconName[] = [