# C_ConsoleScriptCollection: 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_ConsoleScriptCollection

## Functions

### C_ConsoleScriptCollection.GetCollectionDataByID

```lua
data = C_ConsoleScriptCollection.GetCollectionDataByID(collectionID)
```

Arguments:
- `collectionID`: number

Returns:
- `data`: ConsoleScriptCollectionData, may be nil

### C_ConsoleScriptCollection.GetCollectionDataByTag

```lua
data = C_ConsoleScriptCollection.GetCollectionDataByTag(collectionTag)
```

Arguments:
- `collectionTag`: string

Returns:
- `data`: ConsoleScriptCollectionData, may be nil

### C_ConsoleScriptCollection.GetElements

```lua
elementIDs = C_ConsoleScriptCollection.GetElements(collectionID)
```

Arguments:
- `collectionID`: number

Returns:
- `elementIDs`: ConsoleScriptCollectionElementData[]

### C_ConsoleScriptCollection.GetScriptData

```lua
data = C_ConsoleScriptCollection.GetScriptData(consoleScriptID)
```

Arguments:
- `consoleScriptID`: number

Returns:
- `data`: ConsoleScriptData

## Tables

### ConsoleScriptCollectionData (structure)

- `ID`: number
- `name`: cstring

### ConsoleScriptCollectionElementData (structure)

- `collectionID`: number, may be nil
- `consoleScriptID`: number, may be nil

### ConsoleScriptData (structure)

- `ID`: number
- `name`: cstring
- `help`: cstring
- `script`: cstring
- `params`: cstring
- `isLuaScript`: bool

### ConsoleScriptParameter (structure)

- `name`: string
- `description`: string

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