diff --git a/pom.xml b/pom.xml index 2f98a08..80d6702 100644 --- a/pom.xml +++ b/pom.xml @@ -5,8 +5,8 @@ 4.0.0 rystudio.strafbefehl.vinyl - core - 1.0.39-RELEASE + coreunstable + 1.0.40-UNSTABLE-R1 jar Vinyl-Core diff --git a/src/main/java/rystudio/strafbefehl/vinyl/Core.java b/src/main/java/rystudio/strafbefehl/vinyl/Core.java index 678dcbb..28025a9 100644 --- a/src/main/java/rystudio/strafbefehl/vinyl/Core.java +++ b/src/main/java/rystudio/strafbefehl/vinyl/Core.java @@ -15,6 +15,7 @@ import net.dv8tion.jda.api.interactions.commands.build.CommandData; import net.dv8tion.jda.api.interactions.commands.build.Commands; import net.dv8tion.jda.api.requests.GatewayIntent; +import net.dv8tion.jda.api.sharding.DefaultShardManager; import net.dv8tion.jda.api.sharding.DefaultShardManagerBuilder; import net.dv8tion.jda.api.sharding.ShardManager; import net.dv8tion.jda.api.utils.cache.CacheFlag; @@ -44,7 +45,7 @@ public class Core extends ListenerAdapter { public JDA jda; private boolean running; - private ShardManager shardManager; + private DefaultShardManager shardManager; private DefaultShardManagerBuilder builder; @@ -433,7 +434,7 @@ public Core registerListeners(ListenerAdapter... listeners) { return this; } else { if (this.shardManager == null) { - this.shardManager = DefaultShardManagerBuilder.createDefault(this.config.getToken()).build(); + this.shardManager = (DefaultShardManager) DefaultShardManagerBuilder.createDefault(this.config.getToken()).build(); // Configure any other settings for the shardManager if needed }