# C_RecentAllies: 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_RecentAllies

## Functions

### C_RecentAllies.CanSetRecentAllyNote

```lua
canSetNote = C_RecentAllies.CanSetRecentAllyNote(characterGUID)
```

Arguments:
- `characterGUID`: WOWGUID

Returns:
- `canSetNote`: bool

### C_RecentAllies.GetRecentAllies

```lua
recentAlliesData = C_RecentAllies.GetRecentAllies()
```

Returns:
- `recentAlliesData`: RecentAllyData[]

### C_RecentAllies.GetRecentAllyByFullName

```lua
recentAllyData = C_RecentAllies.GetRecentAllyByFullName(fullCharacterName)
```

Arguments:
- `fullCharacterName`: cstring

Returns:
- `recentAllyData`: RecentAllyData, may be nil

### C_RecentAllies.GetRecentAllyByGUID

```lua
recentAllyData = C_RecentAllies.GetRecentAllyByGUID(characterGUID)
```

Arguments:
- `characterGUID`: WOWGUID

Returns:
- `recentAllyData`: RecentAllyData, may be nil

### C_RecentAllies.IsInteractionCategoryFilterSupportedForCurrentGameType

```lua
isInteractionCategoryFilterSupportedForCurrentGameType = C_RecentAllies.IsInteractionCategoryFilterSupportedForCurrentGameType(interactionCategoryFilter)
```

Arguments:
- `interactionCategoryFilter`: RecentAlliesInteractionCategoryFilter

Returns:
- `isInteractionCategoryFilterSupportedForCurrentGameType`: bool

### C_RecentAllies.IsRecentAllyByFullName

```lua
isRecentAlly = C_RecentAllies.IsRecentAllyByFullName(fullCharacterName)
```

Arguments:
- `fullCharacterName`: cstring

Returns:
- `isRecentAlly`: bool

### C_RecentAllies.IsRecentAllyByGUID

```lua
isRecentAlly = C_RecentAllies.IsRecentAllyByGUID(characterGUID)
```

Arguments:
- `characterGUID`: WOWGUID

Returns:
- `isRecentAlly`: bool

### C_RecentAllies.IsRecentAllyDataReady

```lua
isReady = C_RecentAllies.IsRecentAllyDataReady()
```

Returns:
- `isReady`: bool

### C_RecentAllies.IsRecentAllyPinned

```lua
isPinned = C_RecentAllies.IsRecentAllyPinned(characterGUID)
```

Arguments:
- `characterGUID`: WOWGUID

Returns:
- `isPinned`: bool

### C_RecentAllies.IsSystemEnabled

```lua
isRecentAllySystemEnabled = C_RecentAllies.IsSystemEnabled()
```

Returns:
- `isRecentAllySystemEnabled`: bool

### C_RecentAllies.IsSystemSupported

```lua
isRecentAllySystemSupported = C_RecentAllies.IsSystemSupported()
```

Returns:
- `isRecentAllySystemSupported`: bool

### C_RecentAllies.SearchRecentAllies

```lua
recentAlliesData = C_RecentAllies.SearchRecentAllies(searchInfo)
```

Arguments:
- `searchInfo`: RecentAlliesSearchInfo

Returns:
- `recentAlliesData`: RecentAllyData[]

### C_RecentAllies.SetRecentAllyNote

```lua
C_RecentAllies.SetRecentAllyNote(characterGUID, note)
```

Arguments:
- `characterGUID`: WOWGUID
- `note`: cstring

### C_RecentAllies.SetRecentAllyPinned

```lua
C_RecentAllies.SetRecentAllyPinned(characterGUID, isPinned)
```

Arguments:
- `characterGUID`: WOWGUID
- `isPinned`: bool

### C_RecentAllies.TryRequestRecentAlliesData

```lua
C_RecentAllies.TryRequestRecentAlliesData()
```

## Events

### LET_RECENT_ALLIES_SEE_LOCATION_SETTING_UPDATED

No payload.

### RECENT_ALLIES_CACHE_UPDATE

No payload.

### RECENT_ALLIES_DATA_READY

No payload.

### RECENT_ALLIES_SYSTEM_STATUS_UPDATED

No payload.

### RECENT_ALLY_DATA_UPDATED

Payload, after the event's name:
- `characterGUID`: WOWGUID

## Tables

### RecentAlliesSearchInfo (structure)

- `searchText`: string
- `isOnline`: bool
- `isDND`: bool
- `isAFK`: bool
- `isOffline`: bool
- `interactionCategoryFilters`: RecentAlliesInteractionCategoryFilter[]

### RecentAllyCharacterData (structure)

- `guid`: WOWGUID
- `name`: string
- `fullName`: string
- `realmName`: string
- `level`: number
- `classID`: number
- `raceID`: number
- `sex`: UnitSex

### RecentAllyData (structure)

- `stateData`: RecentAllyStateData
- `characterData`: RecentAllyCharacterData
- `interactionData`: RecentAllyInteractionData

### RecentAllyInteraction (structure)

- `type`: RolodexType
- `description`: cstring
- `timestamp`: time_t
- `contextData`: RecentAllyInteractionContextData

### RecentAllyInteractionContextData (structure)

- `itemID`: number, may be nil
- `locationName`: cstring, may be nil
- `activityDifficultyID`: number, may be nil
- `activityDifficultyLevel`: number, may be nil

### RecentAllyInteractionData (structure)

- `interactions`: RecentAllyInteraction[]
- `note`: string, may be nil

### RecentAllyStateData (structure)

- `isOnline`: bool
- `isDND`: bool
- `isAFK`: bool
- `isConvertedLegacyFriend`: bool
- `pinExpirationDate`: time_t, may be nil
- `friendRequestSentThisSession`: bool
- `currentLocation`: string, may be nil

---
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."
