It's working now!

This commit is contained in:
GregTCLTK 2019-12-14 15:19:09 +01:00
parent e8093512fe
commit 07f4edd17f
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 4 additions and 3 deletions

View file

@ -35,7 +35,7 @@
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>LATEST</version>
<version>4.0.0_73</version>
</dependency>
</dependencies>
</project>

View file

@ -6,6 +6,7 @@ import discord.data.mining.listener.ReadyListener;
import net.dv8tion.jda.api.AccountType;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.utils.ChunkingFilter;
import java.util.ArrayList;
@ -30,11 +31,11 @@ public class DataMining {
Thread.sleep(1500);
for (String Token : botTokens) {
bots.add(new JDABuilder(AccountType.BOT).setAutoReconnect(true).setToken(Token).addEventListeners(new GenericEventListener()).build());
bots.add(new JDABuilder(AccountType.BOT).setAutoReconnect(true).setToken(Token).build());
}
for (String Token : clientTokens) {
clients.add(new JDABuilder(AccountType.CLIENT).setAutoReconnect(true).setToken(Token).addEventListeners(new ReadyListener()).build());
clients.add(new JDABuilder(AccountType.CLIENT).setToken(Token).setAutoReconnect(true).setChunkingFilter(ChunkingFilter.NONE).addEventListeners(new ReadyListener(), new GenericEventListener()).build());
}
} catch (Exception e) {