Get Spell Info
Game Version Wrapper
Wrapper around C_Spell.GetSpellInfo that returns the legacy tuple shape many addon integrations still expect.
NamespaceEModuleCoreLifecyclewrapper
E:GetSpellInfo(spellID)Wrapper around C_Spell.GetSpellInfo that returns the legacy tuple shape many addon integrations still expect.
Parameters
Section titled “Parameters”- spellID: Numeric spell id.
Returns
Section titled “Returns”name, nil, iconID, castTime, minRange, maxRange, spellID, originalIconID, or nil when unavailable.
Example
Section titled “Example”local name, _, icon = E:GetSpellInfo(190319)if name then iconTexture:SetTexture(icon)endPrefer this in addon code that wants ElvUI client-version compatibility.
Source: ElvUI/Game/Shared/General/API.lua:497