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
|
// MinecraftDependencyDownload
|
||||||
mddVersion = '1.0.0-SNAPSHOT'
|
mddVersion = '1.0.0-SNAPSHOT'
|
||||||
// JDA
|
// JDA
|
||||||
jdaVersion = '5.0.0-alpha.2'
|
jdaVersion = '5.0.0-alpha.9'
|
||||||
// Configurate
|
// Configurate
|
||||||
configurateVersion = '4.1.2'
|
configurateVersion = '4.1.2'
|
||||||
// Adventure & Adventure Platform
|
// Adventure & Adventure Platform
|
||||||
|
@ -24,9 +24,9 @@ import com.discordsrv.common.config.main.DiscordInviteConfig;
|
|||||||
import com.discordsrv.common.module.type.AbstractModule;
|
import com.discordsrv.common.module.type.AbstractModule;
|
||||||
import net.dv8tion.jda.api.JDA;
|
import net.dv8tion.jda.api.JDA;
|
||||||
import net.dv8tion.jda.api.Permission;
|
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.Guild;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.TextChannel;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ public class DiscordInviteModule extends AbstractModule<DiscordSRV> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
TextChannel channel = guild.getRulesChannel();
|
BaseGuildMessageChannel channel = guild.getRulesChannel();
|
||||||
if (channel == null) {
|
if (channel == null) {
|
||||||
channel = guild.getDefaultChannel();
|
channel = guild.getDefaultChannel();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user