From 60c7dbfbc0677ba7b88ba1161715df8d171993fc Mon Sep 17 00:00:00 2001 From: Vankka Date: Fri, 1 Apr 2022 18:30:42 +0300 Subject: [PATCH] Update JDA --- build.gradle | 2 +- .../com/discordsrv/common/invite/DiscordInviteModule.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index ea114257..9f8bf51c 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ ext { // MinecraftDependencyDownload mddVersion = '1.0.0-SNAPSHOT' // JDA - jdaVersion = '5.0.0-alpha.2' + jdaVersion = '5.0.0-alpha.9' // Configurate configurateVersion = '4.1.2' // Adventure & Adventure Platform diff --git a/common/src/main/java/com/discordsrv/common/invite/DiscordInviteModule.java b/common/src/main/java/com/discordsrv/common/invite/DiscordInviteModule.java index 977ee4ff..a62496c5 100644 --- a/common/src/main/java/com/discordsrv/common/invite/DiscordInviteModule.java +++ b/common/src/main/java/com/discordsrv/common/invite/DiscordInviteModule.java @@ -24,9 +24,9 @@ import com.discordsrv.common.config.main.DiscordInviteConfig; import com.discordsrv.common.module.type.AbstractModule; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.Permission; +import net.dv8tion.jda.api.entities.BaseGuildMessageChannel; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.Member; -import net.dv8tion.jda.api.entities.TextChannel; import java.util.List; @@ -79,7 +79,7 @@ public class DiscordInviteModule extends AbstractModule { return; } - TextChannel channel = guild.getRulesChannel(); + BaseGuildMessageChannel channel = guild.getRulesChannel(); if (channel == null) { channel = guild.getDefaultChannel(); }