API GetAddOnDependencies

From Wowpedia
Jump to: navigation, search

Get the required dependencies for an AddOn.

dep1, dep2, dep3, ... = GetAddOnDependencies(index or "name")

Arguments

Specify an addon by either providing its index in the addons list or its name:

index 
Number - The index of the AddOn in the user's AddOn list. Note that you cannot access Blizzard-provided AddOns through this mechanism.
name 
String - The name of the AddOn to be queries. You can access Blizzard-provided AddOns through this mechanism.

Returns

dep1, dep2, dep3, ... 
String - Name of an addon the specified addon lists as a required dependency.