Skip to content

Get Class Info

Core Helper

Looks up cached class metadata by class file token or class id.

NamespaceEModuleCoreLifecyclestable
E:GetClassInfo(value)

Looks up cached class metadata by class file token or class id.

value: Class file token such as MAGE, or numeric class id.

Class info table from C_CreatureInfo.GetClassInfo, or nil.

local info = E:GetClassInfo("DRUID")

Avoids addon authors rebuilding class id and class token maps.

Source: ElvUI/Game/Shared/General/API.lua:329