World of Warcraft Forever API · C_LFGList.md, for your AI
C_LFGList
52 functions, 17 events, 11 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_LFGList.CanActiveEntryUseAutoAccept
canUseAutoAccept = C_LFGList.CanActiveEntryUseAutoAccept()
Returns
canUseAutoAccept | bool |
|---|
C_LFGList.CanCreateQuestGroup
canCreate = C_LFGList.CanCreateQuestGroup(questID)
Arguments
questID | number |
|---|
Returns
canCreate | bool |
|---|
C_LFGList.CanCreateScenarioGroup
canCreate = C_LFGList.CanCreateScenarioGroup(scenarioID)
Arguments
scenarioID | number |
|---|
Returns
canCreate | bool |
|---|
C_LFGList.ClearApplicationTextFields
C_LFGList.ClearApplicationTextFields()
C_LFGList.ClearCreationTextFields
C_LFGList.ClearCreationTextFields()
C_LFGList.ClearSearchTextFields
C_LFGList.ClearSearchTextFields()
C_LFGList.ConfirmCensoredActiveEntry
C_LFGList.ConfirmCensoredActiveEntry()
C_LFGList.CopyActiveEntryInfoToCreationFields
C_LFGList.CopyActiveEntryInfoToCreationFields()
C_LFGList.CreateListing
success = C_LFGList.CreateListing(createData)
Arguments
createData | LfgListingCreateData |
|---|
Returns
success | bool |
|---|
C_LFGList.CreateScenarioListing
canCreate = C_LFGList.CreateScenarioListing(activityID, itemLevel, autoAccept, privateGroup, scenarioID)
Arguments
activityID | number | |
|---|---|---|
itemLevel | number | |
autoAccept | bool | |
privateGroup | bool | |
scenarioID | number |
Returns
canCreate | bool |
|---|
C_LFGList.DoesCensoredTextMatch
isMatch = C_LFGList.DoesCensoredTextMatch(name, comment)
Arguments
name | cstring | |
|---|---|---|
comment | cstring |
Returns
isMatch | bool |
|---|
C_LFGList.DoesEntryTitleMatchPrebuiltTitle
matches = C_LFGList.DoesEntryTitleMatchPrebuiltTitle(activityID, groupID, [playstyle], [generalPlaystyle])
Arguments
activityID | number | |
|---|---|---|
groupID | number | |
playstyle | LFGEntryPlaystyle may be nil | |
generalPlaystyle | LFGEntryGeneralPlaystyle may be nil |
Returns
matches | bool |
|---|
C_LFGList.GetActiveEntryInfo
entryData = C_LFGList.GetActiveEntryInfo()
May return nothing.
Returns
entryData | LfgEntryData |
|---|
C_LFGList.GetActivityFullName
fullName = C_LFGList.GetActivityFullName(activityID, [questID], [showWarmode])
Arguments
activityID | number | |
|---|---|---|
questID | number may be nil | |
showWarmode | bool may be nil |
Returns
fullName | string |
|---|
C_LFGList.GetActivityGroupInfo
name, orderIndex = C_LFGList.GetActivityGroupInfo(groupID)
May return nothing.
Arguments
groupID | number |
|---|
Returns
name | string | |
|---|---|---|
orderIndex | number |
C_LFGList.GetActivityInfoTable
activityInfo = C_LFGList.GetActivityInfoTable(activityID, [questID], [showWarmode])
May return nothing.
Arguments
activityID | number | |
|---|---|---|
questID | number may be nil | |
showWarmode | bool may be nil |
Returns
activityInfo | GroupFinderActivityInfo |
|---|
C_LFGList.GetAdvancedFilter
options = C_LFGList.GetAdvancedFilter()
Returns
options | AdvancedFilterOptions |
|---|
C_LFGList.GetApplicantBestDungeonScore
bestDungeonScoreForListing = C_LFGList.GetApplicantBestDungeonScore(localID, applicantIndex)
May return nothing.
Arguments
localID | number | |
|---|---|---|
applicantIndex | luaIndex |
Returns
bestDungeonScoreForListing | BestDungeonScoreMapInfo |
|---|
C_LFGList.GetApplicantDungeonScoreForListing
bestDungeonScoreForListing = C_LFGList.GetApplicantDungeonScoreForListing(localID, applicantIndex, activityID)
May return nothing.
Arguments
localID | number | |
|---|---|---|
applicantIndex | luaIndex | |
activityID | number |
Returns
bestDungeonScoreForListing | BestDungeonScoreMapInfo |
|---|
C_LFGList.GetApplicantInfo
applicantData = C_LFGList.GetApplicantInfo(applicantID)
May return nothing.
Arguments
applicantID | number |
|---|
Returns
applicantData | LfgApplicantData |
|---|
C_LFGList.GetApplicantPvpRatingInfoForListing
pvpRatingInfo = C_LFGList.GetApplicantPvpRatingInfoForListing(localID, applicantIndex, activityID)
May return nothing.
Arguments
localID | number | |
|---|---|---|
applicantIndex | luaIndex | |
activityID | number |
Returns
pvpRatingInfo | PvpRatingInfo |
|---|
C_LFGList.GetAvailableActivityGroups
activityIDs = C_LFGList.GetAvailableActivityGroups(categoryID, [filter])
Arguments
categoryID | number | |
|---|---|---|
filter | number default 0 |
Returns
activityIDs | number[] |
|---|
C_LFGList.GetFilteredSearchResults
totalResultsFound, filteredResults = C_LFGList.GetFilteredSearchResults()
Returns
totalResultsFound | number default 0 | |
|---|---|---|
filteredResults | number[] |
C_LFGList.GetGroupLeaverCountsByRole
tankLeavers, healerLeavers, damageLeavers = C_LFGList.GetGroupLeaverCountsByRole()
Returns
tankLeavers | number | |
|---|---|---|
healerLeavers | number | |
damageLeavers | number |
C_LFGList.GetKeystoneForActivity
level = C_LFGList.GetKeystoneForActivity(activityID)
May return nothing.
Arguments
activityID | number |
|---|
Returns
level | number |
|---|
C_LFGList.GetLfgCategoryInfo
categoryData = C_LFGList.GetLfgCategoryInfo(categoryID)
May return nothing.
Arguments
categoryID | number |
|---|
Returns
categoryData | LfgCategoryData |
|---|
C_LFGList.GetOwnedKeystoneActivityAndGroupAndLevel
activityID, groupID, keystoneLevel = C_LFGList.GetOwnedKeystoneActivityAndGroupAndLevel([getTimewalking])
May return nothing.
Arguments
getTimewalking | bool default false |
|---|
Returns
activityID | number | |
|---|---|---|
groupID | number | |
keystoneLevel | number |
C_LFGList.GetPlaystyleString
playstyleString = C_LFGList.GetPlaystyleString(playstyle, generalPlaystyle, activityInfo)
Arguments
playstyle | LFGEntryPlaystyle | |
|---|---|---|
generalPlaystyle | LFGEntryGeneralPlaystyle | |
activityInfo | GroupFinderActivityInfo |
Returns
playstyleString | string |
|---|
C_LFGList.GetPremadeGroupFinderStyle
style = C_LFGList.GetPremadeGroupFinderStyle()
Returns
style | PremadeGroupFinderStyle |
|---|
C_LFGList.GetSearchResultInfo
searchResultData = C_LFGList.GetSearchResultInfo(searchResultID)
May return nothing.
Arguments
searchResultID | number |
|---|
Returns
searchResultData | LfgSearchResultData |
|---|
C_LFGList.GetSearchResultLeaderInfo
leaderInfo = C_LFGList.GetSearchResultLeaderInfo(searchResultID)
May return nothing.
Arguments
searchResultID | number |
|---|
Returns
leaderInfo | LfgSearchResultPlayerInfo |
|---|
C_LFGList.GetSearchResultPlayerInfo
playerInfo = C_LFGList.GetSearchResultPlayerInfo(searchResultID, memberIndex)
May return nothing.
Arguments
searchResultID | number | |
|---|---|---|
memberIndex | luaIndex |
Returns
playerInfo | LfgSearchResultPlayerInfo |
|---|
C_LFGList.GetSearchResults
totalResultsFound, results = C_LFGList.GetSearchResults()
Returns
totalResultsFound | number default 0 | |
|---|---|---|
results | number[] |
C_LFGList.HasActiveEntryInfo
hasActiveEntryInfo = C_LFGList.HasActiveEntryInfo()
Returns
hasActiveEntryInfo | bool |
|---|
C_LFGList.HasSearchResultInfo
hasSearchResultInfo = C_LFGList.HasSearchResultInfo(searchResultID)
Arguments
searchResultID | number |
|---|
Returns
hasSearchResultInfo | bool |
|---|
C_LFGList.IsCensoredActiveEntryUnresolved
isUnresolved = C_LFGList.IsCensoredActiveEntryUnresolved()
Returns
isUnresolved | bool |
|---|
C_LFGList.IsPlayerAuthenticatedForLFG
isAuthenticated = C_LFGList.IsPlayerAuthenticatedForLFG([activityCategoryID])
Arguments
activityCategoryID | number may be nil |
|---|
Returns
isAuthenticated | bool |
|---|
C_LFGList.IsPlayerValidForEndgameFieldEdits
isValid = C_LFGList.IsPlayerValidForEndgameFieldEdits()
Returns
isValid | bool |
|---|
C_LFGList.IsPremadeGroupFinderEnabled
enabled = C_LFGList.IsPremadeGroupFinderEnabled()
Returns
enabled | bool |
|---|
C_LFGList.ListingUsesEndgameEditRestrictions
isEndgameListing = C_LFGList.ListingUsesEndgameEditRestrictions(activityID)
Arguments
activityID | number |
|---|
Returns
isEndgameListing | bool |
|---|
C_LFGList.ReportGroupAsAdvertisement
C_LFGList.ReportGroupAsAdvertisement(searchResultID)
Arguments
searchResultID | number |
|---|
C_LFGList.RevealCensoredActiveEntry
C_LFGList.RevealCensoredActiveEntry()
C_LFGList.RevealCensoredSearchResult
C_LFGList.RevealCensoredSearchResult(searchResultID)
Arguments
searchResultID | number |
|---|
C_LFGList.SaveAdvancedFilter
C_LFGList.SaveAdvancedFilter(options)
Arguments
options | AdvancedFilterOptions |
|---|
C_LFGList.Search
C_LFGList.Search(categoryID, [filter], [preferredFilters], [languageFilter], [searchCrossFactionListings], [advancedFilter], [activityIDsFilter])
Arguments
categoryID | number | |
|---|---|---|
filter | number default 0 | |
preferredFilters | number default 0 | |
languageFilter | WowLocale may be nil | |
searchCrossFactionListings | bool may be nil default false | |
advancedFilter | AdvancedFilterOptions may be nil | |
activityIDsFilter | number[] may be nil | Activity IDs to filter by. |
C_LFGList.SetEntryTitle
C_LFGList.SetEntryTitle(activityID, groupID, [playstyle], [generalPlaystyle])
Arguments
activityID | number | |
|---|---|---|
groupID | number | |
playstyle | LFGEntryPlaystyle may be nil | |
generalPlaystyle | LFGEntryGeneralPlaystyle may be nil |
C_LFGList.SetSearchToActivity
C_LFGList.SetSearchToActivity(activityID)
Arguments
activityID | number |
|---|
C_LFGList.SetSearchToQuestID
C_LFGList.SetSearchToQuestID(questID)
Arguments
questID | number |
|---|
C_LFGList.SetSearchToScenarioID
C_LFGList.SetSearchToScenarioID(scenarioID)
Arguments
scenarioID | number |
|---|
C_LFGList.UpdateListing
success = C_LFGList.UpdateListing(createData)
Arguments
createData | LfgListingCreateData |
|---|
Returns
success | bool |
|---|
C_LFGList.ValidateRequiredDungeonScore
passes = C_LFGList.ValidateRequiredDungeonScore(dungeonScore)
Arguments
dungeonScore | number |
|---|
Returns
passes | bool |
|---|
C_LFGList.ValidateRequiredPvpRatingForActivity
passes = C_LFGList.ValidateRequiredPvpRatingForActivity(activityID, rating)
Arguments
activityID | number | |
|---|---|---|
rating | number |
Returns
passes | bool |
|---|
Events
LFG_GROUP_DELISTED_LEADERSHIP_CHANGE
listingName | string | |
|---|---|---|
automaticDelistTimeRemaining | number |
LFG_LIST_ACTIVE_ENTRY_UPDATE
created | bool may be nil |
|---|
LFG_LIST_APPLICANT_LIST_UPDATED
newPendingEntry | bool may be nil | |
|---|---|---|
newPendingEntryWithData | bool may be nil |
LFG_LIST_APPLICANT_UPDATED
applicantID | number |
|---|
LFG_LIST_APPLICATION_STATUS_UPDATED
searchResultID | number | |
|---|---|---|
newStatus | cstring | |
oldStatus | cstring | |
groupName | kstringLfgListChat |
LFG_LIST_AVAILABILITY_UPDATE
No payload.
LFG_LIST_CENSORED_ACTIVE_ENTRY_UPDATE
isCensored | bool |
|---|
LFG_LIST_ENTRY_CREATION_FAILED
No payload.
LFG_LIST_ENTRY_EXPIRED_TIMEOUT
No payload.
LFG_LIST_ENTRY_EXPIRED_TOO_MANY_PLAYERS
No payload.
LFG_LIST_JOINED_GROUP
searchResultID | number | |
|---|---|---|
groupName | kstringLfgListChat |
LFG_LIST_REVEALED_CENSORED_ACTIVE_ENTRY
No payload.
LFG_LIST_SEARCH_FAILED
reason | cstring may be nil |
|---|
LFG_LIST_SEARCH_RESULT_UPDATED
searchResultID | number |
|---|
LFG_LIST_SEARCH_RESULTS_RECEIVED
No payload.
LFG_LIST_SHOW_SEARCH
activityIDsFilter | number[] may be nil | |
|---|---|---|
showAllLevelRanges | bool |
LFG_LIST_UPDATE_SEARCH_RESULTS
No payload.
Tables
AdvancedFilterOptions structure
needsTank | bool default false | |
|---|---|---|
needsHealer | bool default false | |
needsDamage | bool default false | |
needsMyClass | bool default false | |
hasTank | bool default false | |
hasHealer | bool default false | |
activities | number[] | Activity group IDs to filter by. |
minimumRating | number default 0 | |
difficultyNormal | bool default false | |
difficultyHeroic | bool default false | |
difficultyMythic | bool default false | |
difficultyMythicPlus | bool default false | |
generalPlaystyle1 | bool default false | |
generalPlaystyle2 | bool default false | |
generalPlaystyle3 | bool default false | |
generalPlaystyle4 | bool default false |
BestDungeonScoreMapInfo structure
mapScore | number | |
|---|---|---|
mapName | string | |
bestRunLevel | number | |
finishedSuccess | bool | |
bestRunDurationMs | number | |
bestLevelIncrement | number |
GroupFinderActivityInfo structure
fullName | string | |
|---|---|---|
shortName | string | |
categoryID | number | |
groupFinderActivityGroupID | number | |
ilvlSuggestion | number | |
filters | number | |
minLevel | number | |
minLevelSuggestion | number | |
maxLevelSuggestion | number | |
maxNumPlayers | number | |
displayType | LFGListDisplayType | |
orderIndex | number | |
useHonorLevel | bool | |
showQuickJoinToast | bool | |
isMythicPlusActivity | bool | |
isRatedPvpActivity | bool | |
isCurrentRaidActivity | bool | |
isPvpActivity | bool | |
isMythicActivity | bool | |
allowCrossFaction | bool | |
isHeroicActivity | bool | |
isNormalActivity | bool | |
mapID | number | |
difficultyID | number | |
redirectedDifficultyID | number | |
useDungeonRoleExpectations | bool |
LfgApplicantData structure
applicantID | number | |
|---|---|---|
applicationStatus | cstring | |
pendingApplicationStatus | cstring may be nil | |
numMembers | number | |
isNew | bool | |
comment | kstringLfgListApplicant | |
displayOrderID | number |
LfgCategoryData structure
name | cstring | |
|---|---|---|
searchPromptOverride | cstring may be nil | |
separateRecommended | bool | |
autoChooseActivity | bool | |
preferCurrentArea | bool | |
showPlaystyleDropdown | bool | |
allowCrossFaction | bool |
LfgEntryData structure
activityIDs | number[] | |
|---|---|---|
requiredItemLevel | number | |
requiredHonorLevel | number | |
name | kstringLfgListApplicant | |
comment | kstringLfgListApplicant | |
voiceChat | kstringLfgListApplicant | |
voiceMode | LFGEntryVoiceMode | |
censored | bool | |
duration | time_t | |
autoAccept | bool | |
privateGroup | bool | |
questID | number may be nil | |
requiredDungeonScore | number may be nil | |
requiredPvpRating | number may be nil | |
playstyle | LFGEntryPlaystyle may be nil | |
generalPlaystyle | LFGEntryGeneralPlaystyle may be nil | |
isCrossFactionListing | bool | |
newPlayerFriendly | bool |
LfgListingCreateData structure
activityIDs | number[] | |
|---|---|---|
questID | number may be nil | |
isAutoAccept | bool default false | |
isCrossFactionListing | bool default false | |
isPrivateGroup | bool default false | |
newPlayerFriendly | bool default false | |
playstyle | LFGEntryPlaystyle default "None" | |
generalPlaystyle | LFGEntryGeneralPlaystyle default "None" | |
requiredDungeonScore | number default 0 | |
requiredItemLevel | number default 0 | |
requiredPvpRating | number default 0 | |
voiceMode | LFGEntryVoiceMode default "None" |
LfgSearchResultData structure
searchResultID | number | |
|---|---|---|
activityIDs | number[] | |
leaderName | string may be nil | |
name | kstringLfgListSearch | |
comment | kstringLfgListSearch | |
voiceChat | kstringLfgListSearch | |
voiceMode | LFGEntryVoiceMode | |
censored | bool | |
requiredItemLevel | number | |
requiredHonorLevel | number | |
hasSelf | bool | |
numMembers | number | |
numBNetFriends | number | |
numCharFriends | number | |
numGuildMates | number | |
isDelisted | bool | |
autoAccept | bool | |
isWarMode | bool | |
age | time_t | |
questID | number may be nil | |
leaderOverallDungeonScore | number may be nil | |
leaderDungeonScoreInfo | BestDungeonScoreMapInfo[] | |
leaderBestDungeonScoreInfo | BestDungeonScoreMapInfo may be nil | |
leaderPvpRatingInfo | PvpRatingInfo[] | |
requiredDungeonScore | number may be nil | |
requiredPvpRating | number may be nil | |
playstyle | LFGEntryPlaystyle may be nil | |
generalPlaystyle | LFGEntryGeneralPlaystyle may be nil | |
crossFactionListing | bool may be nil | |
leaderFactionGroup | number | |
newPlayerFriendly | bool may be nil | |
partyGUID | WOWGUID |
LfgSearchResultPlayerInfo structure
name | string may be nil | |
|---|---|---|
level | number may be nil | |
areaName | cstring may be nil | |
className | cstring | |
classFilename | cstring | |
specName | cstring may be nil | |
assignedRole | cstring | |
lfgRoles | LFGRoles | |
isLeader | bool | |
isLeaver | bool default false |
PvpRatingInfo structure
bracket | number | |
|---|---|---|
rating | number | |
activityName | string | |
tier | number |
WowLocale structure
enUS | bool default false | |
|---|---|---|
koKR | bool default false | |
frFR | bool default false | |
deDE | bool default false | |
zhCN | bool default false | |
zhTW | bool default false | |
esES | bool default false | |
esMX | bool default false | |
ruRU | bool default false | |
ptBR | bool default false | |
itIT | bool default false |