API C EncounterJournal.GetSectionInfo

Returns information about an entry in the Abilities section of the Encounter Journal.

info = C_EncounterJournal.GetSectionInfo(sectionID)

Arguments

 * sectionID : number : JournalEncounterSection.ID

Returns

 * info : structure - EncounterJournalSectionInfo

Details

 * returns the  for a given encounter: the first Ability section to display. Subsequent sections can be navigated through the   and   return values of this function.
 * The returned  is affected by the current ; this function can return invalid difficulty/section combinations. If you attempt to send one of those links in a chat message, it will be filtered by the server.

Example
The following snippet prints links to all sections of a given encounter in the Encounter Journal.

function PrintAllEncounterSections(encounterID, difficultyID) EJ_SetDifficulty(difficultyID) local stack, encounter, _, _, curSectionID = {}, EJ_GetEncounterInfo(encounterID) print(encounter.." abilities:") repeat local info = C_EncounterJournal.GetSectionInfo(curSectionID) if not info.filteredByDifficulty then print((" "):rep(info.headerType)..info.link.. ": "..info.description) end table.insert(stack, info.siblingSectionID) if not info.filteredByDifficulty then table.insert(stack, info.firstChildSectionID) end curSectionID = table.remove(stack) until not curSectionID end

-- Print everything in 25-man Normal Madness of Deathwing: PrintAllEncounterSections(333, 4)