Skip to content

Commit

Permalink
Update JDA to version 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan committed Aug 23, 2024
1 parent 9f9acff commit 7598b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ dependencies {
compileOnly("me.clip:placeholderapi:2.11.6")

runtimeDownload("com.google.code.gson:gson:2.10.1")
runtimeDownload("net.dv8tion:JDA:5.0.0-beta.21") {
runtimeDownload("net.dv8tion:JDA:5.1.0") {
exclude(module = "opus-java")
}
runtimeDownload("org.slf4j:slf4j-simple:1.7.36") {
runtimeDownload("org.slf4j:slf4j-simple:2.0.16") {
exclude(module = "slf4j-api")
}
runtimeDownload("com.github.pengrad:java-telegram-bot-api:6.9.0")
Expand Down
2 changes: 2 additions & 0 deletions src/de/cuuky/varo/bot/discord/VaroDiscordBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.dv8tion.jda.api.utils.ChunkingFilter;
import net.dv8tion.jda.api.utils.FileUpload;
import net.dv8tion.jda.api.utils.MemberCachePolicy;
import net.dv8tion.jda.internal.utils.JDALogger;

public class VaroDiscordBot implements VaroBot {

Expand All @@ -40,6 +41,7 @@ private Color getRandomColor() {
@Override
public void connect() {
System.out.println(Main.getConsolePrefix() + "Activating discord bot...");
JDALogger.setFallbackLoggerEnabled(false);
JDABuilder builder = JDABuilder.createLight(ConfigSetting.DISCORDBOT_TOKEN.getValueAsString());
builder.setActivity(Activity.customStatus(ConfigSetting.DISCORDBOT_GAMESTATE.getValueAsString()));
builder.setAutoReconnect(true);
Expand Down

0 comments on commit 7598b56

Please sign in to comment.