API GetActionInfo

Returns information about a specific action. actionType, id, subType = GetActionInfo(slot)

Arguments

 * slot : Number - Action slot to retrieve information about.

Returns

 * actionType :String - Type of action button. (e.g. spell, item, macro, companion, equipmentset, flyout)
 * id : Mixed - Appropriate identifier for the action specified by actionType -- e.g. spell IDs for spells, item IDs for items, equipment set names for equipment sets.
 * subType : Mixed - Additional identifier for the action specified by actionType -- e.g. whether the companion ID is for a MOUNT or a CRITTER companion.

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