C_Spell.GetSpellIDForSpellIdentifier

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 11.0.0

Meant primarily for getting a spell id from a spell name or link; Returns nothing if spell does not exist

spellID = C_Spell.GetSpellIDForSpellIdentifier(spellIdentifier)

Arguments

spellIdentifier
number|string : SpellIdentifier - Spell ID, name, name(subtext), or link; If passed a spell ID, will return same id as was passed

Returns

spellID
number