🚑 Fix bot not starting

This commit is contained in:
SebClem 2020-10-31 15:19:38 +01:00
parent d656bde2e6
commit 3a878c7be8

View File

@ -44,7 +44,9 @@ public class Init {
logger.info("Connecting to Discord api...");
//connection au bot
jda = new JDABuilder(AccountType.BOT).setToken(token).setBulkDeleteSplittingEnabled(false).build();
JDABuilder jdaB = JDABuilder.createDefault(token);
jdaB.setBulkDeleteSplittingEnabled(false);
jda = jdaB.build();
jda = jda.awaitReady();
MainBot.jda = jda;
jda.setAutoReconnect(true);