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 givenCommandHandlerConfiguratorto theCommandHandler.Builder.static <CONTEXT extends CommandContext>
CommandHandler.Builder<CONTEXT>CommandHandler.builder()Creates a new builder for theCommandHandler.CommandHandler.Builder.withArgumentParser(ArgumentParser argumentParser)Sets theArgumentParserthat will be used, if none is specified then the default will be used.CommandHandler.Builder.withBeanProvider(BeanProvider beanProvider)Adds theBeanProviderthat will be used to fetch dependencies for singletonCommandModules.<MODULE extends ModuleBase<CONTEXT>>
CommandHandler.Builder<CONTEXT>CommandHandler.Builder.withModule(Class<MODULE> moduleClass)Adds aCommandModulethat will be used by theCommandHandler.<MODULE extends ModuleBase<CONTEXT>>
CommandHandler.Builder<CONTEXT>CommandHandler.Builder.withModule(Class<MODULE> moduleClass, Consumer<CommandModule.Builder> builderConsumer)Adds aCommandModulethat will be used by theCommandHandler.CommandHandler.Builder.withModule(Consumer<CommandModule.Builder> builderConsumer)Adds aCommandModuleusing 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 aPreconditionFactorythat will be used to instantiate preconditions.CommandHandler.Builder.withPrefixHandler(PrefixHandler prefixHandler)Sets thePrefixHandlerthat will be used to supply prefixes.CommandHandler.Builder.withTokeniser(Tokeniser tokeniser)Sets theTokeniserthat 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 aTypeParserthat 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 TypeMethodDescriptionvoidCommandHandlerConfigurator.apply(CommandHandler.Builder<?> commandHandler)Applies a configuration to aCommandHandler.Builder.voidCommandHandlerWithPrimitiveTypeParsers.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 TypeMethodDescriptionvoidDiscordCommandHandlerWithDiscordTypeParsers.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 TypeMethodDescriptionvoidCommandHandlerWithRequireBotOwnerFactory.apply(CommandHandler.Builder<?> commandHandler)voidCommandHandlerWithRequireGuildOwnerFactory.apply(CommandHandler.Builder<?> commandHandler)voidCommandHandlerWithRequireHierarchyFactory.apply(CommandHandler.Builder<?> commandHandler)voidCommandHandlerWithRequirePermissionFactory.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 TypeMethodDescriptionvoidCommandHandlerWithRequireFailureFactory.apply(CommandHandler.Builder<?> commandHandler)voidCommandHandlerWithRequireHiFactory.apply(CommandHandler.Builder<?> commandHandler)