Returns information about an addon
See also Addon-related functions.
Signature:
name,
title,
notes,
loadable,
reason,
security
=
GetAddOnInfo("name")
or
GetAddOnInfo(index)
Arguments:
name
- Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (string
)index
- Index of an addon in the addon list (between 1 andGetNumAddOns()
) (number
)
Returns:
name
- Name of the addon (name of the addon's folder and TOC file) (string
)title
- Title of the addon (from theTitle
header in the addon's TOC file) (string
)notes
- Contents of theNotes
header in the addon's TOC file (string
)loadable
- If the addon can currently be loaded (1nil
)reason
- If the addon cannot be loaded, an unlocalized string token indicating the reason for failure. Localized strings for display can be found by prepending"ADDON_"
; e.g.ADDON_DEP_MISSING == "Dependency missing"
. (string
)BANNED
- BannedCORRUPT
- CorruptDEP_BANNED
- Dependency bannedDEP_CORRUPT
- Dependency corruptDEP_DISABLED
- Dependency disabledDEP_INCOMPATIBLE
- Dependency incompatibleDEP_INSECURE
- Dependency insecureDEP_INTERFACE_VERSION
- Dependcy out of dateDEP_MISSING
- Dependency missingDEP_NOT_DEMAND_LOADED
- Dependency not loadable on demandDISABLED
- DisabledINCOMPATIBLE
- IncompatibleINSECURE
- InsecureINTERFACE_VERSION
- Out of DateMISSING
- MissingNOT_DEMAND_LOADED
- Not loadable on demand
security
-"SECURE"
for Blizzard built-in addons (or other digitally signed Blizzard-produced addons);"BANNED"
for black-listed addons; otherwise"INSECURE"
(string
)