WoWInterface - View Single Post - Testing slash-command before execution?
View Single Post
07-18-21, 10:15 AM   #2
I did that?
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,431
What function did you add to SlashCmdList to be called by your /xxx command? You could just use that.
Lua Code:
  1. SLASH_MYSLASH1 = "/abc"
  2. SlashCmdList.MYSLASH = function(msg)
  3.     ...
  4. end
  5. -- Testing with
  6. SlashCmdList.MYSLASH("PassedText")
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote