findCommand

open fun findCommand(event: ChatInputCommandInteractionCreateEvent): SlashCommand<*, *, *>

Given a command event, resolve the correct command or subcommand object.


open fun findCommand(event: AutoCompleteInteractionCreateEvent): SlashCommand<*, *, *>

Given an autocomplete event, resolve the correct command or subcommand object.


open fun findCommand(eventCommand: InteractionCommand): SlashCommand<*, *, *>

Given an InteractionCommand, resolve the correct command or subcommand object.