use of com.freya02.bot.wiki.ctorinj.commands.SlashCtorInjectionTest in project BotCommands by freya022.
the class CtorInjMain method alt2.
private static void alt2(JDA jda) throws IOException {
// Just a test value
Connection connection = null;
CommandsBuilder.newBuilder().extensionsBuilder(extensionsBuilder -> extensionsBuilder.registerInstanceSupplier(SlashCtorInjectionTest.class, context -> new SlashCtorInjectionTest(context, connection))).build(jda, "com.freya02.bot.wiki.ctorinj.commands");
}
Aggregations