mNo edit summary Tag: WoW API docs |
m (→Arguments) Tag: WoW API docs |
||
Line 5: | Line 5: | ||
==Arguments== |
==Arguments== |
||
;unit : {{api|t=t|string}} |
;unit : {{api|t=t|string}} |
||
− | ;filter : {{api|t=t|string}} - Similar to {{api|UnitAura}} |
+ | ;filter : {{api|t=t|string}} - Similar to {{api|UnitAura}}; however, either "HELPFUL" or "HARMFUL" is required. |
;maxSlots : {{api|t=t?|number}} - The maximum number of slots to return |
;maxSlots : {{api|t=t?|number}} - The maximum number of slots to return |
||
;continuationToken : {{api|t=t?|number}} - The number of slots to skip (see details). |
;continuationToken : {{api|t=t?|number}} - The number of slots to skip (see details). |
Revision as of 22:04, 1 May 2021
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns an ordered list of auras used with UnitAuraBySlot()
continuationToken, ... = UnitAuraSlots("unit" [, "filter", maxSlots, continuationToken])
Arguments
- unit
- string
- filter
- string - Similar to UnitAura; however, either "HELPFUL" or "HARMFUL" is required.
- maxSlots
- number? - The maximum number of slots to return
- continuationToken
- number? - The number of slots to skip (see details).
Returns
- continuationToken
- number? - Indicates that maxSlots was reached, or nil otherwise (see details).
- ...
- number - A batch of slots used with UnitAuraBySlot(unit, slot).
Details
- Once maxSlots is reached, the continuationToken allows subsequent function calls to skip ahead to the next position.
- This does not imply that more slots exist; the function does not check after reaching maxSlots.
Patch changes
- Patch 8.2.5 (2019-09-24): Added.