Uses of Class
kboyle.oktane.core.CommandHandler.Builder
Packages that use CommandHandler.Builder
Package
Description
-
Uses of CommandHandler.Builder in kboyle.oktane.core
Methods in kboyle.oktane.core that return CommandHandler.BuilderModifier and TypeMethodDescriptionCommandHandler.Builder.applyConfigurator(CommandHandlerConfigurator configurator)
Applies the givenCommandHandlerConfigurator
to theCommandHandler.Builder
.static <CONTEXT extends CommandContext>
CommandHandler.Builder<CONTEXT>CommandHandler.builder()
Creates a new builder for theCommandHandler
.CommandHandler.Builder.withArgumentParser(ArgumentParser argumentParser)
Sets theArgumentParser
that will be used, if none is specified then the default will be used.CommandHandler.Builder.withBeanProvider(BeanProvider beanProvider)
Adds theBeanProvider
that will be used to fetch dependencies for singletonCommandModule
s.<MODULE extends ModuleBase<CONTEXT>>
CommandHandler.Builder<CONTEXT>CommandHandler.Builder.withModule(Class<MODULE> moduleClass)
Adds aCommandModule
that will be used by theCommandHandler
.<MODULE extends ModuleBase<CONTEXT>>
CommandHandler.Builder<CONTEXT>CommandHandler.Builder.withModule(Class<MODULE> moduleClass, Consumer<CommandModule.Builder> builderConsumer)
Adds aCommandModule
that will be used by theCommandHandler
.CommandHandler.Builder.withModule(Consumer<CommandModule.Builder> builderConsumer)
Adds aCommandModule
using only the builders and not from a class.<MODULE extends ModuleBase<CONTEXT>>
CommandHandler.Builder<CONTEXT>CommandHandler.Builder.withModules(Class<MODULE> moduleClass)
Adds all theCommandModule
's that link in the same package as themoduleClass
.<MODULE extends ModuleBase<CONTEXT>>
CommandHandler.Builder<CONTEXT>CommandHandler.Builder.withModules(Class<MODULE> moduleClass, Consumer<CommandModule.Builder> builderConsumer)
Adds all theCommandModule
's that link in the same package as themoduleClass
.CommandHandler.Builder.withPreconditionFactory(PreconditionFactory<?> factory)
Adds aPreconditionFactory
that will be used to instantiate preconditions.CommandHandler.Builder.withPrefixHandler(PrefixHandler prefixHandler)
Sets thePrefixHandler
that will be used to supply prefixes.CommandHandler.Builder.withTokeniser(Tokeniser tokeniser)
Sets theTokeniser
that will be used, if none is specified then the default will be used.<TARGET> CommandHandler.Builder<CONTEXT>
CommandHandler.Builder.withTypeParser(Class<TARGET> cl, TypeParser<TARGET> parser)
Adds aTypeParser
that will be used by theCommandHandler
. -
Uses of CommandHandler.Builder in kboyle.oktane.core.configuration
Methods in kboyle.oktane.core.configuration with parameters of type CommandHandler.BuilderModifier and TypeMethodDescriptionvoid
CommandHandlerConfigurator.apply(CommandHandler.Builder<?> commandHandler)
Applies a configuration to aCommandHandler.Builder
.void
CommandHandlerWithPrimitiveTypeParsers.apply(CommandHandler.Builder<?> commandHandler)
-
Uses of CommandHandler.Builder in kboyle.oktane.discord4j
Method parameters in kboyle.oktane.discord4j with type arguments of type CommandHandler.BuilderModifier and TypeMethodDescriptionstatic <CONTEXT extends DiscordCommandContext>
DiscordCommandHandler<CONTEXT>DiscordCommandHandler.create(Consumer<CommandHandler.Builder<CONTEXT>> commandHandlerConsumer)
-
Uses of CommandHandler.Builder in kboyle.oktane.discord4j.configuration
Methods in kboyle.oktane.discord4j.configuration with parameters of type CommandHandler.BuilderModifier and TypeMethodDescriptionvoid
DiscordCommandHandlerWithDiscordTypeParsers.apply(CommandHandler.Builder<?> commandHandler)
-
Uses of CommandHandler.Builder in kboyle.oktane.discord4j.precondition
Methods in kboyle.oktane.discord4j.precondition with parameters of type CommandHandler.BuilderModifier and TypeMethodDescriptionvoid
CommandHandlerWithRequireBotOwnerFactory.apply(CommandHandler.Builder<?> commandHandler)
void
CommandHandlerWithRequireGuildOwnerFactory.apply(CommandHandler.Builder<?> commandHandler)
void
CommandHandlerWithRequireHierarchyFactory.apply(CommandHandler.Builder<?> commandHandler)
void
CommandHandlerWithRequirePermissionFactory.apply(CommandHandler.Builder<?> commandHandler)
-
Uses of CommandHandler.Builder in kboyle.oktane.example.preconditions
Methods in kboyle.oktane.example.preconditions with parameters of type CommandHandler.BuilderModifier and TypeMethodDescriptionvoid
CommandHandlerWithRequireFailureFactory.apply(CommandHandler.Builder<?> commandHandler)
void
CommandHandlerWithRequireHiFactory.apply(CommandHandler.Builder<?> commandHandler)