fonts
namespace fontsFunctions
applyPreset(id: string): Promise<UnboundFontPresetResult | undefined>
Applies a saved preset, downloading the faces it lacks.
clearOverride(key: string): Promise<void>
Gives a Discord family, or a group, back its own font.
get(id: PropertyKey): UnboundInstalledFont | undefined
Reads one installed face by id.
getAll(): UnboundInstalledFont[]
Lists every installed font face.
getPresets(): UnboundFontPreset[]
Lists the saved font presets.
install(input: string, variants?: UnboundFontVariant[]): Promise<UnboundFontInstallResult | undefined>
Installs a font by family name or link, optionally only some weights and styles.
setOverride(key: string, fontId: string): Promise<void>
Points a Discord family, or a group such as PRIMARY, at an installed face.
uninstall(id: string): Promise<void>
Removes an installed face by id.