T

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.

clearIntervaltypeof clearInterval

Clears a timer this plugin set with setInterval.

clearTimeouttypeof clearTimeout

Clears a timer this plugin set with setTimeout.

commandsOmit<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.

The patcher, tagging each patch with this plugin's id; Unbound removes them when it stops.

Reacttypeof React

Discord's React, whose createElement keeps a reloaded plugin's components matched to their mounted ones.

setIntervaltypeof setInterval

setInterval, cleared when this plugin stops.

setTimeouttypeof setTimeout

setTimeout, 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.