iconPacks
namespace iconPacksFunctions
disable(id: string): void
Disables an icon pack and restores the default icons.
enable(id: string): void | Promise<void>
Enables an icon pack and applies it.
get(id: string): AddonHandle | undefined
Reads one installed icon pack by id.
getAll(): AddonHandle[]
Lists every installed icon pack.
install(url: string, digest?: string): Promise<AddonHandle | undefined>
Installs an icon pack from its manifest URL.
isEnabled(id: string): boolean
Reports whether an icon pack is enabled.
reload(id: string, bundle: string, manifest: PushedManifest, bytecode?: string): Promise<ReloadResult>
Swaps an icon pack's files in place, keeping its enabled state.
toggle(id: string): void
Enables a disabled icon pack, or disables an enabled one.
uninstall(id: string): Promise<void>
Removes an installed icon pack.
update(id: string): Promise<boolean>
Checks for updates, then applies this icon pack's pending update.
Returns
Whether the icon pack now runs a newer version.
Types
The outcome of an addon reload: success, or failure carrying the recorded error.