Skip to content

Commit

Permalink
1.0.40-UNSTABLE-R1
Browse files Browse the repository at this point in the history
  • Loading branch information
Strafbefehl committed Nov 12, 2023
1 parent 7be8e63 commit ce6bbf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<modelVersion>4.0.0</modelVersion>

<groupId>rystudio.strafbefehl.vinyl</groupId>
<artifactId>core</artifactId>
<version>1.0.39-RELEASE</version>
<artifactId>coreunstable</artifactId>
<version>1.0.40-UNSTABLE-R1</version>
<packaging>jar</packaging>
<name>Vinyl-Core</name>

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/rystudio/strafbefehl/vinyl/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -44,7 +45,7 @@ public class Core extends ListenerAdapter {

public JDA jda;
private boolean running;
private ShardManager shardManager;
private DefaultShardManager shardManager;

private DefaultShardManagerBuilder builder;

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit ce6bbf3

Please sign in to comment.