mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-26 12:35:20 +01:00
Update JDA
This commit is contained in:
parent
627ec3045c
commit
60c7dbfbc0
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user