No edit summary Tag: WoW API docs |
No edit summary Tag: WoW API docs |
||
Line 3: | Line 3: | ||
---- |
---- |
||
;index : <span class="apitype">number</span> - Spellbook slot index, ranging from 1 through the [[API GetSpellTabInfo|total number]] of spells across all tabs and pages. |
;index : <span class="apitype">number</span> - Spellbook slot index, ranging from 1 through the [[API GetSpellTabInfo|total number]] of spells across all tabs and pages. |
||
− | ;bookType: <span class="apitype">string</span> |
+ | ;bookType: <span class="apitype">string</span> - <code>BOOKTYPE_SPELL</code> or <code>BOOKTYPE_PET</code> depending on if you wish to query the player or pet spellbook. |
{{:Const_BOOKTYPE}}</onlyinclude> |
{{:Const_BOOKTYPE}}</onlyinclude> |
Revision as of 19:08, 22 May 2022
- spell
- number|string - Spell ID or Name. When passing a name requires the spell to be in your Spellbook.
- index
- number - Spellbook slot index, ranging from 1 through the total number of spells across all tabs and pages.
- bookType
- string -
BOOKTYPE_SPELL
orBOOKTYPE_PET
depending on if you wish to query the player or pet spellbook.
Constant | Value | Description |
---|---|---|
BOOKTYPE_SPELL | "spell" | The General, Class, Specs and Professions tabs[1] |
BOOKTYPE_PET | "pet" | The Pet tab |