View Single Post
08-05-17, 11:10 AM   #5
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Code:
SLASH_PHRASE1 = "/ph";
SLASH_PHRASE2 = "/sph";
SlashCmdList["PHRASE"] = function(msg)
...
end
if you type "/ph something" or "/sph something", "something" will be passed as a string to the msg/txt parameter of your slash comand function.

local anything is local to that module/code chunk and can't be "seen" outside of it. I'm not sure what you mean by SendChatMessage but if you mrean calls to the SendChatMessage function in code then no.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 08-05-17 at 11:15 AM.
  Reply With Quote