WowAddons

World of Warcraft Forever API · C_Secrets.md, for your AI

C_Secrets

27 functions, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an 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. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_Secrets.CanCompareUnitTokens

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

unit1UnitToken
unit2UnitToken

Returns

isUnitComparisonPermittedbool

C_Secrets.GetPowerTypeSecrecy

secrecy = C_Secrets.GetPowerTypeSecrecy(powerType)

Queries the base secrecy for a power type.

Arguments

powerTypePowerType

Returns

secrecySecrecyLevel

C_Secrets.GetSpellAuraSecrecy

secrecy = C_Secrets.GetSpellAuraSecrecy(spellIdentifier)

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

Arguments

spellIdentifierSpellIdentifier

Returns

secrecySecrecyLevel

C_Secrets.GetSpellCastSecrecy

secrecy = C_Secrets.GetSpellCastSecrecy(spellIdentifier)

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

Arguments

spellIdentifierSpellIdentifier

Returns

secrecySecrecyLevel

C_Secrets.GetSpellCooldownSecrecy

secrecy = C_Secrets.GetSpellCooldownSecrecy(spellIdentifier)

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

Arguments

spellIdentifierSpellIdentifier

Returns

secrecySecrecyLevel

C_Secrets.HasSecretRestrictions

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

hasSecretRestrictionsbool

C_Secrets.ShouldActionCooldownBeSecret

isCooldownSecret = C_Secrets.ShouldActionCooldownBeSecret(actionID)

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

Arguments

actionIDluaIndex

Returns

isCooldownSecretbool

C_Secrets.ShouldAurasBeSecret

hasSecretAuras = C_Secrets.ShouldAurasBeSecret()

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

Returns

hasSecretAurasbool

C_Secrets.ShouldCooldownsBeSecret

hasSecretCooldowns = C_Secrets.ShouldCooldownsBeSecret()

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

Returns

hasSecretCooldownsbool

C_Secrets.ShouldSpellAuraBeSecret

isAuraSecret = C_Secrets.ShouldSpellAuraBeSecret(spellIdentifier)

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

Arguments

spellIdentifierSpellIdentifier

Returns

isAuraSecretbool

C_Secrets.ShouldSpellBookItemCooldownBeSecret

isCooldownSecret = C_Secrets.ShouldSpellBookItemCooldownBeSecret(spellBookItemSlotIndex, spellBookItemSpellBank)

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

Arguments

spellBookItemSlotIndexluaIndex
spellBookItemSpellBankSpellBookSpellBank

Returns

isCooldownSecretbool

C_Secrets.ShouldSpellCooldownBeSecret

isCooldownSecret = C_Secrets.ShouldSpellCooldownBeSecret(spellIdentifier)

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

Arguments

spellIdentifierSpellIdentifier

Returns

isCooldownSecretbool

C_Secrets.ShouldTotemSlotBeSecret

isTotemSecret = C_Secrets.ShouldTotemSlotBeSecret(slot)

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

Arguments

slotluaIndex

Returns

isTotemSecretbool

C_Secrets.ShouldTotemSpellBeSecret

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

spellIDnumber

Returns

isTotemSecretbool

C_Secrets.ShouldUnitAuraIndexBeSecret

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

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

Arguments

unitUnitToken
indexluaIndex
filterAuraFilters may be nil

Returns

isAuraSecretbool

C_Secrets.ShouldUnitAuraInstanceBeSecret

isAuraSecret = C_Secrets.ShouldUnitAuraInstanceBeSecret(unit, auraInstanceID)

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

Arguments

unitUnitToken
auraInstanceIDnumber

Returns

isAuraSecretbool

C_Secrets.ShouldUnitAuraSlotBeSecret

isAuraSecret = C_Secrets.ShouldUnitAuraSlotBeSecret(unit, slot)

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

Arguments

unitUnitToken
slotnumber

Returns

isAuraSecretbool

C_Secrets.ShouldUnitComparisonBeSecret

isUnitComparisonSecret = C_Secrets.ShouldUnitComparisonBeSecret(unit1, unit2)

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

Arguments

unit1UnitToken
unit2UnitToken

Returns

isUnitComparisonSecretbool

C_Secrets.ShouldUnitHealthMaxBeSecret

isUnitHealthMaxSecret = C_Secrets.ShouldUnitHealthMaxBeSecret(unit)

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

Arguments

unitUnitToken

Returns

isUnitHealthMaxSecretbool

C_Secrets.ShouldUnitIdentityBeSecret

isUnitIdentitySecret = C_Secrets.ShouldUnitIdentityBeSecret(unit)

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

Arguments

unitUnitToken

Returns

isUnitIdentitySecretbool

C_Secrets.ShouldUnitPowerBeSecret

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

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

Arguments

unitUnitToken
powerTypePowerType may be nil

Returns

isUnitPowerSecretbool

C_Secrets.ShouldUnitPowerMaxBeSecret

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

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

Arguments

unitUnitToken
powerTypePowerType may be nil

Returns

isUnitPowerMaxSecretbool

C_Secrets.ShouldUnitSpellCastBeSecret

isSpellCastSecret = C_Secrets.ShouldUnitSpellCastBeSecret(unit, spellIdentifier)

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

Arguments

unitUnitToken
spellIdentifierSpellIdentifier

Returns

isSpellCastSecretbool

C_Secrets.ShouldUnitSpellCastingBeSecret

isSpellCastingSecret = C_Secrets.ShouldUnitSpellCastingBeSecret(unit)

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

Arguments

unitUnitToken

Returns

isSpellCastingSecretbool

C_Secrets.ShouldUnitStatsBeSecret

hasSecretStats = C_Secrets.ShouldUnitStatsBeSecret()

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

Returns

hasSecretStatsbool

C_Secrets.ShouldUnitThreatStateBeSecret

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

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

Arguments

unitUnitToken
mobUnitUnitToken may be nil

Returns

isUnitThreatSecretbool

C_Secrets.ShouldUnitThreatValuesBeSecret

isUnitThreatSecret = C_Secrets.ShouldUnitThreatValuesBeSecret(unit, mobUnit)

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

Arguments

unitUnitToken
mobUnitUnitToken

Returns

isUnitThreatSecretbool

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows