Class JDACommandsBuilder

java.lang.Object
com.github.kaktushose.jda.commands.JDACommandsBuilder

public class JDACommandsBuilder extends Object

This builder is used to build instances of JDACommands.

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

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();