Skip to main content

Class: SubCommandPluginCommand<ArgType, CommandType>

@sapphire/plugin-subcommands.SubCommandPluginCommand

Type parameters

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

Hierarchy

  • Command<ArgType>

    SubCommandPluginCommand

Constructors

constructor

new SubCommandPluginCommand<ArgType, CommandType>(context, options)

Type parameters

NameType
ArgTypeextends Args<ArgType> = Args
CommandTypeextends Command<ArgType, CommandOptions, CommandType> = Command<ArgType, CommandOptions>

Parameters

NameType
contextPieceContext
optionsSubCommandPluginCommandOptions<ArgType, Command<ArgType, CommandOptions>>

Overrides

Command<ArgType\>.constructor

Defined in

projects/plugins/packages/subcommands/src/lib/SubCommandPluginCommand.ts:8

Properties

subCommands

Readonly subCommands: null | SubCommandManager<ArgType, CommandType>

Defined in

projects/plugins/packages/subcommands/src/lib/SubCommandPluginCommand.ts:6

Methods

messageRun

messageRun(message, args, context): unknown

Parameters

NameType
messageMessage<boolean>
argsArgType
contextCommandContext

Returns

unknown

Overrides

Command.messageRun

Defined in

projects/plugins/packages/subcommands/src/lib/SubCommandPluginCommand.ts:14