C_AddOns. IsAddOnLoadable
functionimplementedavailable in: camelot
Returns whether the addon can be loaded, and the reason when it cannot, such as DISABLED or MISSING. · description by wowlua
function C_AddOns.IsAddOnLoadable( name: uiAddon, character: string, demandLoaded: boolean): (boolean, string)Parameters
| name | type | description |
|---|---|---|
name | uiAddon | The name of the addon to be queried, or an index from 1 to C_AddOns.GetNumAddOns. The state of Blizzard addons can only be queried by name. |
character | string | The name or GUID of the character to check against, or omitted/nil for all characters Default: "0". |
demandLoaded | boolean | Whether to check it as a load-on-demand addon. Default: false. |
Returns
| # | name | type |
|---|---|---|
| 1 | loadable | boolean |
| 2 | reason | string |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (AddOns system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry. Parameter and result notes: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.