# GetSpellCharges is not in World of Warcraft Forever: write C_Spell.GetSpellCharges

Forever 1.60.1 (70959), Interface 16001. An addon that calls `GetSpellCharges` stops at /reload with `attempt to call global 'GetSpellCharges' (a nil value)`. Write `C_Spell.GetSpellCharges`; its arguments and returns may differ from the old GetSpellCharges, read them first. Page: https://wowaddons.gg/forever-api/C_Spell.md

```lua
chargeInfo = C_Spell.GetSpellCharges(spellIdentifier)
```

Returns a table of info about the charges of a charge-accumulating spell; May return nil if spell is not found or is not charge-based

May return nothing.

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

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `chargeInfo`: SpellChargeInfo

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