# C_LFGListRoles: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_LFGListRoles

## Functions

### C_LFGListRoles.GetRoles

```lua
roles = C_LFGListRoles.GetRoles()
```

May return nothing.

Returns:
- `roles`: LFGRoles

### C_LFGListRoles.GetSavedRoles

```lua
roles = C_LFGListRoles.GetSavedRoles()
```

May return nothing.

Returns:
- `roles`: LFGRoles

### C_LFGListRoles.SetRoles

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

Arguments:
- `roles`: LFGRoles
- `limitToClassRoles`: bool, default false

Returns:
- `success`: bool

## Events

### LFG_LIST_ROLE_UPDATE

No payload.

---
Make an addon with your 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."
