Class JDACBuilder


public final class JDACBuilder extends JDACBuilderData

This builder is used to build instances of JDACommands.

Please note that values that can be set have a default implementation. These following implementations are based on reflections. If you want to avoid reflections, you have to provide your own implementations for:

In addition to manually configuring this builder, you can also provide implementations of Extension trough Javas service provider interface, which are applied during JDACommands creation. Values manually defined by this builder will always override loaded and default ones, except for:

which will add to the default and loaded ones.

These implementations of Extension can be additionally configured by adding the according implementation of Extension.Data by calling extensionData(Extension.Data...). (if supported by the extension)

Example

JDACommands jdaCommands = JDACommands.builder(jda, Main.class)
    .middleware(Priority.NORMAL, new TestMiddleware())
    .globalReplyConfig(new InteractionDefinition.ReplyConfig(false, false, true))
    .classFinders(ClassFinder.reflective(Main.class), ClassFinders.explicit(ButtonInteraction.class))
    .start();
See Also: