Thread: Slash Commands
View Single Post
04-02-16, 08:57 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
A function with a single string parameter if needed.

It could be:
Code:
SlashCmdList["RAIDLOCKREPORT"] = function(msg) 
    if msg then
        DEFAULT_CHAT_FRAME:AddMessage(msg) 
    else
        DEFAULT_CHAT_FRAME:AddMessage("Working") 
    end
end
SLASH_RAIDLOCKREPORT1 = "/raidlockreport";
SLASH_RAIDLOCKREPORT2 = "/rlr";
if you type "/rlr 123" it would print 123.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote