GetSlotCooldownInfo
ESO Lua API function — used by 42 of the 3,030 addons we indexed (combined 14,103,318 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetSlotCooldownInfo(luaindex actionSlotIndex, [HotBarCategory|#HotBarCategory]:nilable hotbarCategory)Returns: integer remain, integer duration, bool global, globalSlotType
Real usage — from Action Duration Reminder
if l.getSavedVars().barShowInQuickslot then
local remain,duration, global = GetSlotCooldownInfo(GetCurrentQuickslot(),HOTBAR_CATEGORY_QUICKSLOT_WHEEL)
if remain>0 and not global thenShort excerpt from the shipping addon Action Duration Reminder — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Action Duration Reminder | 6,522,011 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| Combat Metronome (GCD Tracker) | 483,791 |
| LibPotionBuff | 158,318 |
| Harven's Potions Alert | 112,873 |