World of Warcraft Forever API · C_LFGListRoles.md, for your AI
C_LFGListRoles
3 functions, 1 events, 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_LFGListRoles.GetRoles
roles = C_LFGListRoles.GetRoles()
May return nothing.
Returns
roles | LFGRoles |
|---|
C_LFGListRoles.GetSavedRoles
roles = C_LFGListRoles.GetSavedRoles()
May return nothing.
Returns
roles | LFGRoles |
|---|
C_LFGListRoles.SetRoles
success = C_LFGListRoles.SetRoles(roles, [limitToClassRoles])
Arguments
roles | LFGRoles | |
|---|---|---|
limitToClassRoles | bool default false |
Returns
success | bool |
|---|
Events
LFG_LIST_ROLE_UPDATE
No payload.