@sapphire/plugin-subcommands
Namespaces
Namespace | Description |
---|---|
Subcommand | - |
SubcommandPreconditionResolvers | - |
SubcommandPreconditions | The preconditions specific to subcommands |
Enumerations
Enumeration | Description |
---|---|
SubcommandCommandPreConditions | The available command pre-conditions. |
SubcommandIdentifiers | The available subcommand pre-conditions. |
SubcommandPluginIdentifiers | - |
Classes
Class | Description |
---|---|
PluginSubcommandCooldownPrecondition | The subcommand cooldown precondition. This differs from the cooldown precondition in framework by using a separate bucket as well as resolving the id differently to ensure it is specific to a subcommand. |
Subcommand | The class to extends for commands that have subcommands. Specify the subcommands through the Subcommand.Options.subcommands option. |
Interfaces
Interface | Description |
---|---|
ChatInputSubcommandAcceptedPayload | - |
ChatInputSubcommandDeniedPayload | - |
ChatInputSubcommandErrorPayload | - |
ChatInputSubcommandNoMatchContext | - |
ChatInputSubcommandRunPayload | - |
ChatInputSubcommandSuccessPayload | - |
IChatInputSubcommandPayload | - |
IMessageSubcommandPayload | - |
MessageSubcommandAcceptedPayload | - |
MessageSubcommandDeniedPayload | - |
MessageSubcommandErrorPayload | - |
MessageSubcommandNoMatchContext | - |
MessageSubcommandRunPayload | - |
MessageSubcommandSuccessPayload | - |
PluginSubcommandCooldownPreconditionContext | The context for the subcommand cooldown precondition |
SubcommandMappingGroup | - |
SubcommandMappingMethod | Describes how a subcommand method maps to the actual implementation of that subcommand. |
SubcommandOptions | - |
Type Aliases
Type alias | Description |
---|---|
ChatInputCommandSubcommandMappingMethod | - |
MessageSubcommandMappingMethod | - |
SubcommandMapping | - |
SubcommandMappingArray | - |
Variables
Variable | Description |
---|---|
SubcommandPluginEvents | - |
SubcommandPreconditions | The preconditions specific to subcommands |
version | The @sapphire/plugin-subcommands version that you are currently using. An example use of this is showing it of in a bot information command. |
Functions
Function | Description |
---|---|
loadListeners | - |
loadPreconditions | - |