What's the best approach for updating a registered command's "ticked" flag (or set of flags, for that matter)?
As it is, the only methods for getting a command by an ID through the ApplicationCommandManager is by calling getCommandForID() or getCommandForIndex(), which returns a const ApplicationCommandInfo...
And of course, ApplicationCommandManager::registerCommand() has a nice big assertion in there to promptly make you think if you're doing the right thing or not. But honestly, re-registering a command to update it sounds like the wrong way to go about doing so.
Why not have something like:
ApplicationCommandManager::updateCommand(ApplicationCommandInfo& newInfo)
{
//Find the command, if it exists
//Replace its contents, if a command has been registered with this id
//Update listeners (commandStatusChanged() ?)
}
