>wowhelm_
~/forever/addon-api/function/C_Spell.GetSpellIDForSpellIdentifier

C_Spell.GetSpellIDForSpellIdentifier

documented function · Spell
C_Spell.GetSpellIDForSpellIdentifier(spellIdentifier) : spellID

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

──ARGUMENTS
spellIdentifier
SpellIdentifier (Spell ID, name, name(subtext), or link; Using name will always check for an override on that spell; If passed a spell ID, will return same id as was passed)
──RETURNS
spellID
number
──DETAILS
May Return Nothing
true
Secret Arguments
AllowedWhenTainted
──VERSION HISTORY

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