v0.13.8

C_SpellBook.GetSpellBookItemName

functionimplementedavailable in: camelot

Returns the name of a spellbook item.

signaturewowlua
function C_SpellBook.GetSpellBookItemName(    spellBookItemSlotIndex: number,    spellBookItemSpellBank: SpellBookSpellBank): (string?, string?)

Parameters

nametypedescription
spellBookItemSlotIndexnumberSpellbook slot index, ranging from 1 through the total number of spells across all tabs and pages
spellBookItemSpellBankSpellBookSpellBank

Returns

#nametypedescription
1namestring?Name of the spell as it appears in the spell book, e.g. *"Lesser Heal"*
2subNamestring?May be empty if spell's data isn't loaded yet; Listen for SPELL_TEXT_UPDATE event, or use SpellMixin to load asynchronously

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpellBook system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.