WowAddons

World of Warcraft Forever API · C_CooldownViewer.md, for your AI

C_CooldownViewer

7 functions, 3 events, 2 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_CooldownViewer.GetCooldownViewerCategorySet

cooldownIDs = C_CooldownViewer.GetCooldownViewerCategorySet(category, [allowUnlearned])

Arguments

categoryCooldownViewerCategory
allowUnlearnedbool default false

Returns

cooldownIDsnumber[]

C_CooldownViewer.GetCooldownViewerCooldownInfo

cooldownInfo = C_CooldownViewer.GetCooldownViewerCooldownInfo(cooldownID)

May return nothing.

Arguments

cooldownIDnumber

Returns

cooldownInfoCooldownViewerCooldown

C_CooldownViewer.GetGroupBuffItems

groupBuffItems = C_CooldownViewer.GetGroupBuffItems()

Returns

groupBuffItemsGroupBuffItem[]

C_CooldownViewer.GetLayoutData

data = C_CooldownViewer.GetLayoutData()

Returns

datacstring

C_CooldownViewer.GetValidAlertTypes

validAlertTypes = C_CooldownViewer.GetValidAlertTypes(cooldownID)

Arguments

cooldownIDnumber

Returns

validAlertTypesCooldownViewerAlertEventType[]

C_CooldownViewer.IsCooldownViewerAvailable

isAvailable, failureReason = C_CooldownViewer.IsCooldownViewerAvailable()

Returns

isAvailablebool
failureReasonstring

C_CooldownViewer.SetLayoutData

C_CooldownViewer.SetLayoutData(data)

Arguments

datacstring

Events

COOLDOWN_VIEWER_DATA_LOADED

No payload.

COOLDOWN_VIEWER_SPELL_OVERRIDE_UPDATED

baseSpellIDnumberThe base spell that is either being overridden or losing its override spell.
overrideSpellIDnumber may be nilThe spell overriding the base spell. A nil value indicates that the override spell is being removed from the base spell.

COOLDOWN_VIEWER_TABLE_HOTFIXED

No payload.

Tables

CooldownViewerCooldown structure

cooldownIDnumber
spellIDnumber may be nil
spellCategoryIDnumber may be nil
overrideSpellIDnumber may be nil
overrideTooltipSpellIDnumber may be nil
equipSlotluaIndex may be nil
buffSlotluaIndex may be nil
linkedSpellIDsnumber[]
selfAurabool
hasAurabool
chargesbool
isKnownbool
isInvisiblebool
flagsCooldownSetSpellFlags
categoryCooldownViewerCategory

GroupBuffItem structure

spellIDnumberThe persisted key for this item, shared by every rank of the spell.
displaySpellIDnumberThe spell used for name, icon and tooltip: the highest known rank, or the lowest rank if none are known.
namecstring
iconIDfileID
flagsGroupBuffItemFlags
isKnownbool

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows