API GetMacroSpell

Returns information about the spell a given macro is set to cast. 
 id = GetMacroSpell(slot or macroName)
==Arguments==
The sole argument has two forms:
:;slot: - The macro slot to query.
:;macroName: - The name of the macro to query.
==Returns==
:;id: - The ability's spellId.
==Details==
* Action-bar addons use this function to display dynamic macro icons, tooltips and glow effects. As a macro's cast sequence changes, this function indicates which will be cast next.
==Example==
local macroName = "MyMacro"
local index = GetMacroIndexByName(macroName)
if index then 
	local spellId = GetMacroSpell(index)
	if spellId then
		print(macroName .. " will now cast " .. GetSpellLink(spellId))
	end
end
==Patch changes==
==References==