# C_CovenantPreview: 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_CovenantPreview

## Functions

### C_CovenantPreview.CloseFromUI

```lua
C_CovenantPreview.CloseFromUI()
```

### C_CovenantPreview.GetCovenantInfoForPlayerChoiceResponseID

```lua
previewInfo = C_CovenantPreview.GetCovenantInfoForPlayerChoiceResponseID(playerChoiceResponseID)
```

May return nothing.

Arguments:
- `playerChoiceResponseID`: number

Returns:
- `previewInfo`: CovenantPreviewInfo

## Events

### COVENANT_PREVIEW_CLOSE

No payload.

### COVENANT_PREVIEW_OPEN

Payload, after the event's name:
- `previewInfo`: CovenantPreviewInfo

## Tables

### CovenantAbilityInfo (structure)

- `spellID`: number
- `type`: CovenantAbilityType

### CovenantFeatureInfo (structure)

- `name`: cstring
- `description`: cstring
- `texture`: number

### CovenantPreviewInfo (structure)

- `textureKit`: textureKit
- `transmogSetID`: number
- `mountID`: number
- `covenantName`: string
- `covenantZone`: string
- `description`: string
- `covenantCrest`: textureAtlas
- `covenantAbilities`: CovenantAbilityInfo[]
- `fromPlayerChoice`: bool
- `covenantSoulbinds`: CovenantSoulbindInfo[]
- `featureInfo`: CovenantFeatureInfo

### CovenantSoulbindInfo (structure)

- `spellID`: number
- `uiTextureKit`: textureKit
- `name`: cstring
- `description`: cstring
- `sortOrder`: number

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