T
LeafCommand
A command that runs. O is inferred from options and types execute's args.
execute uses method syntax so its parameter stays bivariant and the registry can hold it erased.
type LeafCommand<O> = { … }Members
The message key of the text the picker shows under the command name; 1 to 100 characters in en-US.
The command's options keyed by name, made with the option builders. At most 25.
subcommands?
neverNever set on a leaf; a command with subcommands is a CommandGroup.
execute
(args: OptionArgs<O>, context: CommandContext): Awaitable<Reply>Runs the command with the parsed options. A throw or rejection shows the user an ephemeral error.