registerHandler method
Registers handler for subcommand
Implementation
void registerHandler(SlashCommandHandler handler) {
if (this.type != CommandOptionType.subCommand) {
throw StateError("Cannot register handler for command option with type other that subcommand");
}
this._handler = handler;
}