# C_Secrets: 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_Secrets

## Functions

### C_Secrets.CanCompareUnitTokens

```lua
isUnitComparisonPermitted = C_Secrets.CanCompareUnitTokens(unit1, unit2)
```

Returns true if queries to compare two input unit tokens are permitted. If this returns false, APIs guarded by the RequiresComparableUnitTokens predicate will fail.

Arguments:
- `unit1`: UnitToken
- `unit2`: UnitToken

Returns:
- `isUnitComparisonPermitted`: bool

### C_Secrets.GetPowerTypeSecrecy

```lua
secrecy = C_Secrets.GetPowerTypeSecrecy(powerType)
```

Queries the base secrecy for a power type.

Arguments:
- `powerType`: PowerType

Returns:
- `secrecy`: SecrecyLevel

### C_Secrets.GetSpellAuraSecrecy

```lua
secrecy = C_Secrets.GetSpellAuraSecrecy(spellIdentifier)
```

Queries the base secrecy for a spell if queried as an aura.

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `secrecy`: SecrecyLevel

### C_Secrets.GetSpellCastSecrecy

```lua
secrecy = C_Secrets.GetSpellCastSecrecy(spellIdentifier)
```

Queries the base secrecy for a spell if queried as a cast.

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `secrecy`: SecrecyLevel

### C_Secrets.GetSpellCooldownSecrecy

```lua
secrecy = C_Secrets.GetSpellCooldownSecrecy(spellIdentifier)
```

Queries the base secrecy for a spell if queried as a cooldown.

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `secrecy`: SecrecyLevel

### C_Secrets.HasSecretRestrictions

```lua
hasSecretRestrictions = C_Secrets.HasSecretRestrictions()
```

Returns true if this client build has secret value restrictions enabled. If false, all APIs that are tagged as potentially returning secrets will never do so.

Returns:
- `hasSecretRestrictions`: bool

### C_Secrets.ShouldActionCooldownBeSecret

```lua
isCooldownSecret = C_Secrets.ShouldActionCooldownBeSecret(actionID)
```

Returns true if a given action bar slot ID will produce secret values for cooldowns if queried.

Arguments:
- `actionID`: luaIndex

Returns:
- `isCooldownSecret`: bool

### C_Secrets.ShouldAurasBeSecret

```lua
hasSecretAuras = C_Secrets.ShouldAurasBeSecret()
```

Returns true if queries for aura data will generally produce secret values.

Returns:
- `hasSecretAuras`: bool

### C_Secrets.ShouldCooldownsBeSecret

```lua
hasSecretCooldowns = C_Secrets.ShouldCooldownsBeSecret()
```

Returns true if queries for cooldown data will generally produce secret values.

Returns:
- `hasSecretCooldowns`: bool

### C_Secrets.ShouldSpellAuraBeSecret

```lua
isAuraSecret = C_Secrets.ShouldSpellAuraBeSecret(spellIdentifier)
```

Returns true if a given spell identifier would, if applied as an aura, produce secret values when queried.

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `isAuraSecret`: bool

### C_Secrets.ShouldSpellBookItemCooldownBeSecret

```lua
isCooldownSecret = C_Secrets.ShouldSpellBookItemCooldownBeSecret(spellBookItemSlotIndex, spellBookItemSpellBank)
```

Returns true if a given spellbook item will produce secret values for cooldowns if queried.

Arguments:
- `spellBookItemSlotIndex`: luaIndex
- `spellBookItemSpellBank`: SpellBookSpellBank

Returns:
- `isCooldownSecret`: bool

### C_Secrets.ShouldSpellCooldownBeSecret

```lua
isCooldownSecret = C_Secrets.ShouldSpellCooldownBeSecret(spellIdentifier)
```

Returns true if a given spell identifier will produce secret values for cooldowns if queried.

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `isCooldownSecret`: bool

### C_Secrets.ShouldTotemSlotBeSecret

```lua
isTotemSecret = C_Secrets.ShouldTotemSlotBeSecret(slot)
```

Returns true if information about a totem slot will produce secret values if queried.

Arguments:
- `slot`: luaIndex

Returns:
- `isTotemSecret`: bool

### C_Secrets.ShouldTotemSpellBeSecret

```lua
isTotemSecret = C_Secrets.ShouldTotemSpellBeSecret(spellID)
```

Returns true if information about a spell when associated with a totem slot will produce secret values if queried.

Arguments:
- `spellID`: number

Returns:
- `isTotemSecret`: bool

### C_Secrets.ShouldUnitAuraIndexBeSecret

```lua
isAuraSecret = C_Secrets.ShouldUnitAuraIndexBeSecret(unit, index, [filter])
```

Returns true if a given aura index will produce secret values if queried.

Arguments:
- `unit`: UnitToken
- `index`: luaIndex
- `filter`: AuraFilters, may be nil

Returns:
- `isAuraSecret`: bool

### C_Secrets.ShouldUnitAuraInstanceBeSecret

```lua
isAuraSecret = C_Secrets.ShouldUnitAuraInstanceBeSecret(unit, auraInstanceID)
```

Returns true if a given aura instance ID will produce secret values if queried.

Arguments:
- `unit`: UnitToken
- `auraInstanceID`: number

Returns:
- `isAuraSecret`: bool

### C_Secrets.ShouldUnitAuraSlotBeSecret

```lua
isAuraSecret = C_Secrets.ShouldUnitAuraSlotBeSecret(unit, slot)
```

Returns true if a given aura slot ID will produce secret values if queried.

Arguments:
- `unit`: UnitToken
- `slot`: number

Returns:
- `isAuraSecret`: bool

### C_Secrets.ShouldUnitComparisonBeSecret

```lua
isUnitComparisonSecret = C_Secrets.ShouldUnitComparisonBeSecret(unit1, unit2)
```

Returns true if queries that compare units will produce secret values.

Arguments:
- `unit1`: UnitToken
- `unit2`: UnitToken

Returns:
- `isUnitComparisonSecret`: bool

### C_Secrets.ShouldUnitHealthMaxBeSecret

```lua
isUnitHealthMaxSecret = C_Secrets.ShouldUnitHealthMaxBeSecret(unit)
```

Returns true if queries for maximum unit health will produce secret values.

Arguments:
- `unit`: UnitToken

Returns:
- `isUnitHealthMaxSecret`: bool

### C_Secrets.ShouldUnitIdentityBeSecret

```lua
isUnitIdentitySecret = C_Secrets.ShouldUnitIdentityBeSecret(unit)
```

Returns true if queries for unit identity (such as name or GUID) will produce secret values.

Arguments:
- `unit`: UnitToken

Returns:
- `isUnitIdentitySecret`: bool

### C_Secrets.ShouldUnitPowerBeSecret

```lua
isUnitPowerSecret = C_Secrets.ShouldUnitPowerBeSecret(unit, [powerType])
```

Returns true if queries for unit power will produce secret values.

Arguments:
- `unit`: UnitToken
- `powerType`: PowerType, may be nil

Returns:
- `isUnitPowerSecret`: bool

### C_Secrets.ShouldUnitPowerMaxBeSecret

```lua
isUnitPowerMaxSecret = C_Secrets.ShouldUnitPowerMaxBeSecret(unit, [powerType])
```

Returns true if queries for maximum unit power will produce secret values.

Arguments:
- `unit`: UnitToken
- `powerType`: PowerType, may be nil

Returns:
- `isUnitPowerMaxSecret`: bool

### C_Secrets.ShouldUnitSpellCastBeSecret

```lua
isSpellCastSecret = C_Secrets.ShouldUnitSpellCastBeSecret(unit, spellIdentifier)
```

Returns true if queries for spell casting information for a unit would produce secret values when queried.

Arguments:
- `unit`: UnitToken
- `spellIdentifier`: SpellIdentifier

Returns:
- `isSpellCastSecret`: bool

### C_Secrets.ShouldUnitSpellCastingBeSecret

```lua
isSpellCastingSecret = C_Secrets.ShouldUnitSpellCastingBeSecret(unit)
```

Returns true if queries for spell casting information for a specific unit will generally produce secret values.

Arguments:
- `unit`: UnitToken

Returns:
- `isSpellCastingSecret`: bool

### C_Secrets.ShouldUnitStatsBeSecret

```lua
hasSecretStats = C_Secrets.ShouldUnitStatsBeSecret()
```

Returns true if queries for unit statistics will produce secret values.

Returns:
- `hasSecretStats`: bool

### C_Secrets.ShouldUnitThreatStateBeSecret

```lua
isUnitThreatSecret = C_Secrets.ShouldUnitThreatStateBeSecret(unit, [mobUnit])
```

Returns true if queries for unit threat status will produce secret values.

Arguments:
- `unit`: UnitToken
- `mobUnit`: UnitToken, may be nil

Returns:
- `isUnitThreatSecret`: bool

### C_Secrets.ShouldUnitThreatValuesBeSecret

```lua
isUnitThreatSecret = C_Secrets.ShouldUnitThreatValuesBeSecret(unit, mobUnit)
```

Returns true if queries for unit threat values will produce secret values.

Arguments:
- `unit`: UnitToken
- `mobUnit`: UnitToken

Returns:
- `isUnitThreatSecret`: 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."
