Update JDA

This commit is contained in:
Vankka 2022-04-01 18:30:42 +03:00
parent 627ec3045c
commit 60c7dbfbc0
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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<DiscordSRV> {
return;
}
TextChannel channel = guild.getRulesChannel();
BaseGuildMessageChannel channel = guild.getRulesChannel();
if (channel == null) {
channel = guild.getDefaultChannel();
}