API GetSpellLink

Returns the hyperlink for a spell.
 link, spellId = GetSpellLink(spell
 = GetSpellLink(index, bookType)
==Arguments==
==Returns==
:;link: : spellLink
:;spellID:
==Example==
Prints a clickable spell link, for Flash Heal.
/run print(GetSpellLink(2061))
Dumps an (escaped) spell link.
/dump GetSpellLink(2061)
-- "|cff71d5ff|Hspell:2061:0|h[Flash Heal]|h|r", 2061
Dumps the first spell from your spell book.
/dump GetSpellLink(1, BOOKTYPE_SPELL)
-- "|cff71d5ff|Hspell:6603:0|h[Auto Attack]|h|r", 6603
==Patch changes==