MCom.getComID
From WoWWiki
This article is a part of the documentation of the MCom function library
--[[
getComID ( [string/number] slashcom, string subcom )
Gets the ID of the slashcom in the slash commands list, as well as a
sub slash command, if you specify that you want a sub commands ID.
Args:
slashcom - The slash commmand, or super slash command to get the ID of.
If you pass the ID itself, that ID will be used when getting
the sub command. This can be a list of commands, instead of
just one, in which case, it will return the first one in the
list that it finds. Don't forget the / ex. "/command"
Optional:
slashcom - The sub command you want to get, if you want one. This can
be a list instead of just one command, the first one found
will be used.
Returns:
commandid - If it finds the command, it returns the ID, otherwise it returns nil.
subcommand - If it finds the subcommand it also returns that, otherwise, nil.
]]--
