Add function to retrieve supported subcommands and check when running /run_completer_command request. Thes subcommands are cached so it's a cheap operation to check against them.
IMHO it's more clear and comprehensive to check subcommand availability beforehand the run_completer_command instead of parsing the error message of a failed request. Also in the latter case we would need to forward the request to the exception to get the original subcommand of the request, which is IMHO also not very nice.
Add function to retrieve supported subcommands and check when running
/run_completer_command
request. Thes subcommands are cached so it's a cheap operation to check against them.IMHO it's more clear and comprehensive to check subcommand availability beforehand the
run_completer_command
instead of parsing the error message of a failed request. Also in the latter case we would need to forward the request to the exception to get the original subcommand of the request, which is IMHO also not very nice.