# C_SpellDiminish: 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_SpellDiminish

## Functions

### C_SpellDiminish.GetAllSpellDiminishCategories

```lua
categories = C_SpellDiminish.GetAllSpellDiminishCategories([ruleset])
```

Arguments:
- `ruleset`: SpellDiminishRuleset, may be nil

Returns:
- `categories`: SpellDiminishCategoryInfo[]

### C_SpellDiminish.GetSpellDiminishCategoryInfo

```lua
categoryInfo = C_SpellDiminish.GetSpellDiminishCategoryInfo(category)
```

Arguments:
- `category`: SpellDiminishCategory

Returns:
- `categoryInfo`: SpellDiminishCategoryInfo, may be nil

### C_SpellDiminish.IsSystemSupported

```lua
isSystemSupported = C_SpellDiminish.IsSystemSupported()
```

Returns:
- `isSystemSupported`: bool

### C_SpellDiminish.ShouldTrackSpellDiminishCategory

```lua
isTracked = C_SpellDiminish.ShouldTrackSpellDiminishCategory(category, ruleset)
```

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments:
- `category`: SpellDiminishCategory
- `ruleset`: SpellDiminishRuleset

Returns:
- `isTracked`: bool

## Events

### UNIT_SPELL_DIMINISH_CATEGORY_STATE_UPDATED

Payload, after the event's name:
- `unitTarget`: UnitTokenVariant
- `trackerInfo`: SpellDiminishTrackerInfo

## Tables

### SpellDiminishCategoryInfo (structure)

- `category`: SpellDiminishCategory
- `name`: cstring
- `icon`: fileID, may be nil

### SpellDiminishTrackerInfo (structure)

- `category`: SpellDiminishCategory
- `startTime`: number
- `duration`: number
- `showCountdown`: bool
- `isImmune`: bool

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