# C_DyeColor: 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_DyeColor

## Functions

### C_DyeColor.GetAllDyeColorCategories

```lua
dyeColorCategoryIDs = C_DyeColor.GetAllDyeColorCategories()
```

Returns:
- `dyeColorCategoryIDs`: number[]

### C_DyeColor.GetAllDyeColors

```lua
dyeColorIDs = C_DyeColor.GetAllDyeColors([ownedColorsOnly])
```

Arguments:
- `ownedColorsOnly`: bool, default false

Returns:
- `dyeColorIDs`: number[]

### C_DyeColor.GetDyeColorCategoryInfo

```lua
dyeColorCategoryInfo = C_DyeColor.GetDyeColorCategoryInfo(dyeColorCategoryID)
```

Arguments:
- `dyeColorCategoryID`: number

Returns:
- `dyeColorCategoryInfo`: DyeColorCategoryDisplayInfo, may be nil

### C_DyeColor.GetDyeColorInfo

```lua
dyeColorInfo = C_DyeColor.GetDyeColorInfo(dyeColorID)
```

Arguments:
- `dyeColorID`: number

Returns:
- `dyeColorInfo`: DyeColorDisplayInfo, may be nil

### C_DyeColor.GetDyeColorsForItem

```lua
dyeColorIDs = C_DyeColor.GetDyeColorsForItem(itemLinkOrID)
```

Arguments:
- `itemLinkOrID`: ItemInfo

Returns:
- `dyeColorIDs`: number[]

### C_DyeColor.GetDyeColorsForItemLocation

```lua
dyeColorIDs = C_DyeColor.GetDyeColorsForItemLocation(itemLocation)
```

Arguments:
- `itemLocation`: ItemLocation

Returns:
- `dyeColorIDs`: number[]

### C_DyeColor.GetDyeColorsInCategory

```lua
dyeColorIDs = C_DyeColor.GetDyeColorsInCategory(dyeColorCategory, [ownedColorsOnly])
```

Arguments:
- `dyeColorCategory`: number
- `ownedColorsOnly`: bool, default false

Returns:
- `dyeColorIDs`: number[]

### C_DyeColor.IsDyeColorOwned

```lua
isOwned = C_DyeColor.IsDyeColorOwned(dyeColorID)
```

True if the player owns any of the consumable item used to apply the specified dye

Arguments:
- `dyeColorID`: number

Returns:
- `isOwned`: bool

## Events

### DYE_COLOR_CATEGORY_UPDATED

Payload, after the event's name:
- `dyeColorCategoryID`: number

### DYE_COLOR_UPDATED

Payload, after the event's name:
- `dyeColorID`: 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."
