WoW API: GetMacroBody
← WoW API < GetMacroBody
Returns the body (macro text) of a macro.
body = GetMacroBody(macroIndex or "name")
ArgumentsEdit
- macroID
- number or String - Macro index or name.
ReturnsEdit
- body
- String - The macro body or nothing if the macro doesn't exsist.
ExampleEdit
local body = GetMacroBody("Flash") DEFAULT_CHAT_FRAME:AddMessage(body)
Result
#showtooltip /cast [target=mouseover, help, exists] [help, exists] [target=player] Flash Heal