diff --git a/testbot/build.gradle.kts b/testbot/build.gradle.kts index 9d783e6e7..b8f7122ce 100644 --- a/testbot/build.gradle.kts +++ b/testbot/build.gradle.kts @@ -5,7 +5,8 @@ plugins { dependencies { implementation(project(":main")) - implementation("net.dv8tion:JDA:4.2.1_253") + implementation("net.dv8tion:JDA:4.3.0_285") + implementation("net.iharder:base64:2.3.9") runtimeOnly("ch.qos.logback:logback-classic:1.1.8") } diff --git a/testbot/src/main/java/com/sedmelluq/discord/lavaplayer/demo/Bootstrap.java b/testbot/src/main/java/com/sedmelluq/discord/lavaplayer/demo/Bootstrap.java index 426e9de56..095223115 100644 --- a/testbot/src/main/java/com/sedmelluq/discord/lavaplayer/demo/Bootstrap.java +++ b/testbot/src/main/java/com/sedmelluq/discord/lavaplayer/demo/Bootstrap.java @@ -2,10 +2,12 @@ import net.dv8tion.jda.api.JDABuilder; +import static net.dv8tion.jda.api.requests.GatewayIntent.GUILD_MESSAGES; +import static net.dv8tion.jda.api.requests.GatewayIntent.GUILD_VOICE_STATES; + public class Bootstrap { public static void main(String[] args) throws Exception { - new JDABuilder() - .setToken(System.getProperty("botToken")) + JDABuilder.create(System.getProperty("botToken"), GUILD_MESSAGES, GUILD_VOICE_STATES) .addEventListeners(new BotApplicationManager()) .build(); }