C_QuestLog.GetTitleForQuestID

From Warcraft Wiki
Jump to navigation Jump to search

Returns the name for a Quest ID.

title = C_QuestLog.GetTitleForQuestID(questID)

Arguments

questID
number

Returns

title
string?

Details

  • This API does not require the quest to be in your quest log.
  • Only returns a valid title for quests, header titles cannot be discovered using this.
  • Data might not be readily available from the server, query this asynchronously with C_QuestLog.RequestLoadQuestByID() and QUEST_DATA_LOAD_RESULT

Example

Queries the quest name with QuestEventListener

local questID = 29950 -- Li Li's Day Off

QuestEventListener:AddCallback(questID, function()
	local name = C_QuestLog.GetTitleForQuestID(questID)
	print(name)
end)

Patch changes

Shadowlands Patch 9.0.1 (2020-10-13): Moved to C_QuestLog.GetTitleForQuestID()
Battle for Azeroth Patch 8.0.1 (2018-07-17): Added as C_QuestLog.GetQuestInfo()

See also