API GetSpellBookItemTexture

Returns the icon of a spell book entry. icon = GetSpellBookItemTexture("spellName" [or index, "bookType])

Arguments
or
 * spellName : String - name of the spell book entry to query.
 * index : Number - spell book slot index, ascending from 1.
 * bookType : String - spell book to query; e.g.
 * ("spell"), the player spell book
 * ("pet"), the pet spell book

Returns

 * icon : Number (fileID) - Icon fileId for the queried entry, or nil if the queried item does not exist.