Package kboyle.oktane.core.configuration
Interface CommandHandlerConfigurator
- All Known Implementing Classes:
CommandHandlerWithPrimitiveTypeParsers
,CommandHandlerWithRequireBotOwnerFactory
,CommandHandlerWithRequireFailureFactory
,CommandHandlerWithRequireGuildOwnerFactory
,CommandHandlerWithRequireHierarchyFactory
,CommandHandlerWithRequireHiFactory
,CommandHandlerWithRequirePermissionFactory
,DiscordCommandHandlerWithDiscordTypeParsers
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a configurator for the
CommandHandler
.
Intended to be used internally by Oktane and not externally implemented.-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply(CommandHandler.Builder<?> commandHandler)
Applies a configuration to aCommandHandler.Builder
.default int
priority()
The priority to execute the configurator in, applied in ascending order
-
Method Details
-
apply
Applies a configuration to aCommandHandler.Builder
.- Parameters:
commandHandler
- TheCommandHandler.Builder
to apply the configuration to.
-
priority
default int priority()The priority to execute the configurator in, applied in ascending order
-