C_AddOns. GetAddOnInfo
functionimplementedavailable in: camelot
Returns information about an AddOn.
function C_AddOns.GetAddOnInfo( name: uiAddon): (string, string, string, boolean, string, 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. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | name | string | The name of the AddOn (the folder name). |
| 2 | title | string | The localized title of the AddOn as listed in the .toc file. |
| 3 | notes | string | The localized notes about the AddOn from its .toc file. |
| 4 | loadable | boolean | Indicates if the AddOn is loaded or eligible to be loaded on this or another character, true if it is, false if it is not. |
| 5 | reason | string | The 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_". |
| 6 | security | string | Indicates 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 ↗.