# GetSpellBookItemName is not in World of Warcraft Forever: write C_SpellBook.GetSpellBookItemName

Forever 1.60.1 (70959), Interface 16001. An addon that calls `GetSpellBookItemName` stops at /reload with `attempt to call global 'GetSpellBookItemName' (a nil value)`. Write `C_SpellBook.GetSpellBookItemName`; its arguments and returns may differ from the old GetSpellBookItemName, read them first. Page: https://wowaddons.gg/forever-api/C_SpellBook.md

```lua
name, subName = C_SpellBook.GetSpellBookItemName(spellBookItemSlotIndex, spellBookItemSpellBank)
```

May return nothing.

Arguments:
- `spellBookItemSlotIndex`: luaIndex
- `spellBookItemSpellBank`: SpellBookSpellBank

Returns:
- `name`: string
- `subName`: string. May be empty if spell's data isn't loaded yet; Listen for SPELL_TEXT_UPDATE event, or use SpellMixin to load asynchronously

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
