discoverSlashCommands

Discover the BaseSlashCommand inside the package.

Return

A DiscoveryResult with the elapsed time to discover commands, the count of commands discovered and the commands itself.

Parameters

packageName

The package to lookup.

See also

Throws

When you try to register more than 1 command with the same name, a command that contains a default handler with sub-commands handlers, a command contains more than 1 handler for the same command path (command/group/subcommand) or a command does not contain handlers.

When cannot initialize a command class with no empty constructor.