C_AddOns.GetAddOnEnableState

From Warcraft Wiki
Jump to navigation Jump to search

Queries the enabled state of an addon, optionally for a specific character.

state = C_AddOns.GetAddOnEnableState(name [, character])

Arguments

name
string|number - 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.
character
string? - The name of the character to check against, or omitted/nil for all characters

Returns

state
Enum.AddOnEnableState - The enabled state of the addon.
Value Field Description
0 None Disabled
1 Some Enabled for some characters; this is only possible if character is nil.
2 All Enabled

Patch changes

Dragonflight Patch 10.2.0 (2023-11-07): Added.