What I would like is to be able to have multiple slash commands registered in my addon but then be able to identify which one was executed.
Code:
Addon:RegisterChatCommand( "slasha" , "SlashFunction" )
Addon:RegisterChatCommand( "slashb" , "SlashFunction" )
then when in my SlashFunction function id like to be able to do something like;
Code:
function ProEmote:SlashFunction()
local slash = MySlash()
print("You typed " .. slash);
end
I know i could use inputs instead and have a single slash command but i'd like it this way if possible
Any ideas how to know what the slash command was that was typed?
Upy