Skip to content

Commit

Permalink
fix(subcommands): export cooldown precondition on top level and depre…
Browse files Browse the repository at this point in the history
…cate namespaced exports
  • Loading branch information
favna committed May 7, 2024
1 parent ec27a29 commit e71f926
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/subcommands/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export * as SubcommandPreconditionResolvers from './lib/precondition-resolvers/s
export * from './lib/types/Enums';
export * from './lib/types/Events';
export * from './lib/types/SubcommandMappings';
export {
PluginPrecondition as PluginSubcommandCooldownPrecondition,
type PluginSubcommandCooldownPreconditionContext
} from './preconditions/PluginSubcommandCooldown';

export { loadListeners } from './listeners/_load';
export { loadPreconditions } from './preconditions/_load';
Expand Down Expand Up @@ -43,6 +47,8 @@ declare module '@sapphire/framework' {
/**
* The preconditions specific to subcommands
* @since 5.1.0
* @deprecated - This will be replaced with a regular top level export of {@link PluginSubcommandCooldown}
* in the next major version as opposed to a namespaced export.
*/
export const SubcommandPreconditions = {
PluginSubcommandCooldown
Expand All @@ -51,6 +57,8 @@ export const SubcommandPreconditions = {
/**
* The preconditions specific to subcommands
* @since 5.1.0
* @deprecated - This will be replaced with a regular top level export of {@link PluginSubcommandCooldownPreconditionContext}
* in the next major version as opposed to a namespaced export.
*/
export namespace SubcommandPreconditions {
/** The context for the subcommand cooldown precondition */
Expand Down

0 comments on commit e71f926

Please sign in to comment.