Originally Posted by Akryn
You still have to do something like he posted, because the keys of SlashCmdList don't necessarily correspond to the slash command text.
|
Most of the indices are pretty obvious, and if they're not you can browse the addon's code. If you need to call a large number of commands then sure, that method is probably fine. If you only need to call one or a few slash command handlers, why wrap it in a function that iterates through the entire table when you you can find the index anyway?
But whatever.