Skip to content

Commit

Permalink
force enable the JdkStoreService
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 11, 2020
1 parent 6c36fe3 commit e6f4611
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import discord4j.discordjson.json.ActivityUpdateRequest;
import discord4j.discordjson.json.gateway.StatusUpdate;
import discord4j.rest.util.Snowflake;
import discord4j.store.jdk.JdkStoreService;
import org.bukkit.Bukkit;
import reactor.core.publisher.Mono;

Expand Down Expand Up @@ -212,7 +213,7 @@ public static class DiscordConnectThread extends Thread {
public void run() {
try {
DiscordClient client = DiscordClientBuilder.create(code).build();
conn.client = client.login().block();
conn.client = client.gateway().setStoreService(new JdkStoreService()).login().block();
conn.registerHandlers();
}
catch (Exception ex) {
Expand Down

0 comments on commit e6f4611

Please sign in to comment.