IHelpCommand

@InterfacedService(acceptMultiple = false)
interface IHelpCommand(source)

Must be implemented by your custom help command.

If an implementation of that interface is found, it replaces the built-in help command.

This lets the framework use the command to also display help about specific commands.

Usage: Register your instance as a service with @BService or any annotation that enables your class for dependency injection.

See also

@InterfacedService

Functions

Link copied to clipboard
open fun onInvalidCommand(event: BaseCommandEvent, commandInfo: TextCommandInfo)

Fired when a command is recognized, but the arguments do not correspond to any command variation.

Link copied to clipboard
open suspend fun onInvalidCommandSuspend(event: BaseCommandEvent, commandInfo: TextCommandInfo)

Fired when a command is recognized, but the arguments do not correspond to any command variation.