AddonScope
The globals a plugin runs with, keyed by name. Plugin code reads them without an import.
type AddonScope = { … }Members
This plugin's handle: its manifest and state.
typeof clearIntervalClears a timer this plugin set with setInterval.
typeof clearTimeoutClears a timer this plugin set with setTimeout.
Omit<ReturnType<UnboundGlobal["commands"]["createCommands"]>, keyof UnboundGlobal["commands"]> & UnboundGlobal["commands"]The commands API, registering each command under this plugin's id; Unbound removes them when it stops.
A logger that prefixes each line with this plugin's name.
UnboundGlobal["patcher"]The patcher, tagging each patch with this plugin's id; Unbound removes them when it stops.
typeof ReactDiscord's React, whose createElement keeps a reloaded plugin's components matched to their mounted ones.
typeof setIntervalsetInterval, cleared when this plugin stops.
typeof setTimeoutsetTimeout, cleared when this plugin stops.
The Unbound API, with the metro, storage, flux, patcher, commands, settings and assets registrations scoped to this plugin, and toasts, dialogs and i18n reading its own messages.