>wowhelm_
~/forever/addon-api/function/C_UnitAuras.GetUnitAuraBySpellID

C_UnitAuras.GetUnitAuraBySpellID

documented function · UnitAuras
C_UnitAuras.GetUnitAuraBySpellID(unit, spellID) : aura

Returns the first instance of an aura on a unit matching a given spell ID. Returns nil if no such aura is found. Additionally can return nil if querying a unit that is not visible (eg. party members on other maps).

──ARGUMENTS
unit
UnitTokenRestrictedForAddOns, never secret
spellID
SpellIdentifier
──RETURNS
aura
AuraData, optional
──DETAILS
Secret When Unit Aura Restricted
true
Requires Non Secret Aura
true
Secret Arguments
AllowedWhenTainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.