API GetActionInfo

Returns information about a specific action.

actionType, id, subType = GetActionInfo(slot)

Arguments

 * slot : Integer - The button to retrieve data from.

Returns

 * actionType : String - Type of action button. (e.g. spell, item, macro, companion, equipmentset)
 * id : Integer - spellId for spells etc. Returns a string when actionType is "equipmentset".
 * subType : String - Returns nil if not applicable.

Example
local actionType, id, subType = GetActionInfo(1); if ( actionType == "companion" and subType == "MOUNT" ) then print("Button 1 is a mount:", GetSpellLink(id)) end