v0.13.8

C_AddOns.GetAddOnInfo

functionimplementedavailable in: camelot

Returns information about an AddOn.

signaturewowlua
function C_AddOns.GetAddOnInfo(    name: uiAddon): (string, string, string, boolean, string, 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.

Returns

#nametypedescription
1namestringThe name of the AddOn (the folder name).
2titlestringThe localized title of the AddOn as listed in the .toc file.
3notesstringThe localized notes about the AddOn from its .toc file.
4loadablebooleanIndicates if the AddOn is loaded or eligible to be loaded on this or another character, true if it is, false if it is not.
5reasonstringThe reason why the AddOn cannot be loaded. This is nil if the addon is loadable, otherwise it contains a string token indicating the reason that can be localized by prepending "ADDON_".
6securitystringIndicates the security status of the AddOn. This is currently "INSECURE" for all user provided addons, "SECURE_PROTECTED" for guarded Blizzard addons, and "SECURE" for all other Blizzard AddOns.

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: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.