ESODecoded

GetSlotType

ESO Lua API function — used by 39 of the 3,030 addons we indexed (combined 23,546,999 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetSlotType(luaindex actionSlotIndex, [HotBarCategory|#HotBarCategory]:nilable hotbarCategory)

Returns: actionType

Real usage — from Action Duration Reminder

  -- and we should not replace the original ability icon.
  if GetSlotType(action.slotNum, action.hotbarCategory) == ACTION_TYPE_CRAFTED_ABILITY then
    local mutantId = GetAbilityIdForCraftedAbilityId(GetSlotBoundId(action.slotNum, action

Short excerpt from the shipping addon Action Duration Reminderits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Action Duration Reminder6,522,011
Srendarr - Aura, Buff & Debuff Tracker5,058,870
LibCombat5,017,654
Code's Combat Alerts4,445,158
Combat Metronome (GCD Tracker)483,791
Wizard's Wardrobe481,038