FANDOM


WoW API < GetLFGTypes

Returns all available LFG categories

category1, category2, category3, ... = GetLFGTypes()

TakesEdit

Nothing

ReturnsEdit

String categoryN
Name of Nth category

EventsEdit

Needs UPDATE_LFG_TYPES

DetailsEdit

When using this function to feed other LFG functions with its results, remember that these functions only want the index of the value, not the value itself. If you wanted to use 'Zone' as category, you would have to supply the number 4. Look at the example!

ExampleEdit

local types = {GetLFGTypes()}
for i,category in pairs(types) do
  DEFAULT_CHAT_FRAME:AddMessage(format('Category %u: %s', i, category))
end

Output:

Category 1: Dungeon
Category 2: Raid
Category 3: Quest
Category 4: Zone
Category 5: Battleground

</dd> User:Zelgadis/LFG notice

Community content is available under CC-BY-SA unless otherwise noted.