Skip to main content

@sapphire/plugin-subcommands

Namespaces

NamespaceDescription
Subcommand-
SubcommandPreconditionResolvers-
SubcommandPreconditionsThe preconditions specific to subcommands

Enumerations

EnumerationDescription
SubcommandCommandPreConditionsThe available command pre-conditions.
SubcommandIdentifiersThe available subcommand pre-conditions.
SubcommandPluginIdentifiers-

Classes

ClassDescription
PluginSubcommandCooldownPreconditionThe subcommand cooldown precondition. This differs from the cooldown precondition in framework by using a separate
SubcommandThe class to extends for commands that have subcommands.

Interfaces

InterfaceDescription
ChatInputSubcommandAcceptedPayload-
ChatInputSubcommandDeniedPayload-
ChatInputSubcommandErrorPayload-
ChatInputSubcommandRunPayload-
ChatInputSubcommandSuccessPayload-
IChatInputSubcommandPayload-
IMessageSubcommandPayload-
MessageSubcommandAcceptedPayload-
MessageSubcommandDeniedPayload-
MessageSubcommandErrorPayload-
MessageSubcommandNoMatchContext-
MessageSubcommandRunPayload-
MessageSubcommandSuccessPayload-
PluginSubcommandCooldownPreconditionContextThe context for the subcommand cooldown precondition
SubcommandMappingGroup-
SubcommandMappingMethodDescribes how a subcommand method maps to the actual implementation of that subcommand.
SubcommandOptions-

Type Aliases

Type aliasDescription
ChatInputCommandSubcommandMappingMethod-
MessageSubcommandMappingMethod-
SubcommandMapping-
SubcommandMappingArray-

Variables

VariableDescription
SubcommandPluginEvents-
SubcommandPreconditionsThe preconditions specific to subcommands
versionThe @sapphire/plugin-subcommands version that you are currently using.

Functions

FunctionDescription
loadListeners-
loadPreconditions-