WowAddons

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

rolesLFGRoles

C_LFGListRoles.GetSavedRoles

roles = C_LFGListRoles.GetSavedRoles()

May return nothing.

Returns

rolesLFGRoles

C_LFGListRoles.SetRoles

success = C_LFGListRoles.SetRoles(roles, [limitToClassRoles])

Arguments

rolesLFGRoles
limitToClassRolesbool default false

Returns

successbool

Events

LFG_LIST_ROLE_UPDATE

No payload.

Il te faut WowAddons

Gratuit, pour Windows, macOS et Linux : il met l’addon dans ton jeu en un clic et le tient à jour. Ouvre-le une fois, puis appuie de nouveau sur Installer.

WowAddons tourne sur ton ordinateur : ouvre wowaddons.gg dessus.

Télécharger pour Windows