ESODecoded

GetAbilityCastInfo

ESO Lua API function — used by 42 of the 3,030 addons we indexed (combined 29,618,893 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetAbilityCastInfo(integer abilityId, integer:nilable overrideRank, string casterUnitTag)

Returns: bool:nilable channeled, integer:nilable durationValue

Real usage — from Combat Metrics

	if abilityDurations[abilityId] == nil then
		local channeled, castTime = GetAbilityCastInfo(abilityId)

Short excerpt from the shipping addon Combat Metricsits 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
Combat Metrics7,085,289
Action Duration Reminder6,522,011
Srendarr - Aura, Buff & Debuff Tracker5,058,870
LibCombat5,017,654
RaidNotifier Updated2,789,746
Combat Metronome (GCD Tracker)483,791