v0.13.7

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

signaturewowlua
function C_AddOns.IsAddOnLoadable(    name: uiAddon,    character: string,    demandLoaded: boolean): (boolean, string)

Parameters

nametypedescription
nameuiAddonThe 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.
characterstringThe name or GUID of the character to check against, or omitted/nil for all characters Default: "0".
demandLoadedbooleanWhether to check it as a load-on-demand addon. Default: false.

Returns

#nametype
1loadableboolean
2reasonstring

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