View Single Post
07-18-21, 12:41 PM   #3
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
Originally Posted by Fizzlemizz View Post
What function did you add to SlashCmdList to be called by your /xxx command?
Well, .executeCmd() function is made for general purpose and could receive different kind of commands or macros, something like:
Lua Code:
  1. .executeCmd("/sit", true) -- built-in macro
  2. .executeCmd("/anAddonSlashCmd arg1", true) -- an addon /cmd
  3. .executeCmd("print(GetServerTime()", false) -- script
So I'm not sure to understand what are you proposing.
  Reply With Quote