Get Spell Cooldown
Game Version Wrapper
Returns spell cooldown data from either legacy GetSpellCooldown or C_Spell.GetSpellCooldown.
NamespaceEModuleCoreLifecyclewrapper
E:GetSpellCooldown(spellID)Returns spell cooldown data from either legacy GetSpellCooldown or C_Spell.GetSpellCooldown.
Parameters
Section titled “Parameters”spellID: Numeric spell id.
Returns
Section titled “Returns”startTime, duration, isEnabled, modRate when cooldown data is available.
Example
Section titled “Example”local start, duration = E:GetSpellCooldown(120)Pairs with E:GetSpellInfo and E:GetSpellCharges for cross-client spell integrations.
Source: ElvUI/Game/Shared/General/API.lua:513