Skip to main content

Interface: Options<ArgType, CommandType>

@sapphire/plugin-subcommands.SubCommandEntry.Options

The options for a SubCommandEntry.

property input Input represents the subcommand that the user will type in.

property output Output represents the method/command called for the subcommand.

example

subCommands: [{
input: ({ message }) => message.resolveKey('subcommands:set'),
output: 'set'
}]

Type parameters

NameType
ArgTypeextends Args = Args
CommandTypeextends Command<ArgType> = Command<ArgType>

Hierarchy

Properties

input

โ€ข input: string | (context: MessageRunContext<ArgType, CommandType>) => Awaitable<string>

Defined in

projects/plugins/packages/subcommands/src/lib/SubCommandEntry.ts:44


output

โ€ข Optional output: string

Defined in

projects/plugins/packages/subcommands/src/lib/SubCommandEntry.ts:45