Lore archive · Warcraft Wiki, 2023 dump
API GetAddOnInfo
Last wiki revision 2023-06-17
Get information about an AddOn. name, title, notes, loadable, reason, security, newVersion = GetAddOnInfo(index or name)
- name: - The name of the AddOn (the folder name).
- title: - The title of the AddOn as listed in the .toc file (presumably this is the appropriate localized one).
- notes: - The notes about the AddOn from its .toc file (presumably this is the appropriate localized one).
- loadable: - Indicates if the AddOn is loaded or eligible to be loaded, true if it is, false if it is not.
- reason: - 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_". ("BANNED", "CORRUPT", "DEMAND_LOADED", "DISABLED", "INCOMPATIBLE", "INTERFACE_VERSION", "MISSING")
- security: - 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.
- newVersion: - Not currently used.
- If the function is passed a string, name will always be the value passed, so check if reason equals "MISSING" to find out if an addon exists.
- If the function is passed a number that is out of range, you will get an error message, specifically
Source
https://warcraft.wiki.gg/wiki/API_GetAddOnInfo · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.