Returns information about the spell a unit is currently channeling
See also Unit functions, Spell functions.
Signature:
name, subText, text, texture, startTime, endTime, isTradeSkill, notInterruptible = UnitChannelInfo("unit")
Arguments:
unit- A unit to query (string, unitID)
Returns:
name- Name of the spell being cast (string)subText- Secondary text associated with the spell (e.g."Rank 5", "Racial", etc.) (string)text- Text to be displayed on a casting bar (string)texture- Path to an icon texture for the spell (string)startTime- Time at which the cast was started (in milliseconds; can be compared toGetTime()* 1000) (number)endTime- Time at which the cast will finish (in milliseconds; can be compared toGetTime()* 1000) (number)isTradeSkill- 1 if the spell being cast is a trade skill recipe; otherwise nil (1nil)notInterruptible- Indicates that the spell cannot be interrupted,UNIT_SPELLCAST_NOT_INTERRUPTIBLEandUNIT_SPELLCAST_INTERRUPTIBLEare fired to indicate changes in the interruptible status. (boolean)