[CHORE] Update Discord JDA
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
version_major=0
|
||||
version_minor=0
|
||||
version_patch=39
|
||||
version_patch=40
|
||||
|
||||
shade_group=com.hypherionmc.sdlink.shaded.
|
||||
|
||||
# Core Dependencies
|
||||
jda=5.0.0-beta.16
|
||||
jda=5.0.0-beta.17
|
||||
chewtils=2.0-SNAPSHOT
|
||||
webhooks=0.7.5
|
||||
commons4=4.4
|
||||
|
@@ -35,6 +35,7 @@ public class PlayerListSlashCommand extends SDLinkSlashCommand {
|
||||
|
||||
@Override
|
||||
protected void execute(SlashCommandEvent event) {
|
||||
try {
|
||||
List<MinecraftAccount> players = SDLinkPlatform.minecraftHelper.getOnlinePlayers();
|
||||
|
||||
EmbedBuilder builder = new EmbedBuilder();
|
||||
@@ -79,5 +80,9 @@ public class PlayerListSlashCommand extends SDLinkSlashCommand {
|
||||
|
||||
event.replyEmbeds(pages.get(0)).setEphemeral(false).queue(success ->
|
||||
success.retrieveOriginal().queue(msg -> embedPaginator.paginate(msg, 1)));
|
||||
} catch (Exception e) {
|
||||
if (SDLinkConfig.INSTANCE.generalConfig.debugging)
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.hypherionmc.sdlink.core.discord.commands.slash.verification;
|
||||
|
||||
import com.hypherionmc.sdlink.core.config.SDLinkConfig;
|
||||
import com.hypherionmc.sdlink.core.database.SDLinkAccount;
|
||||
import com.hypherionmc.sdlink.core.discord.commands.slash.SDLinkSlashCommand;
|
||||
import com.hypherionmc.sdlink.core.util.MessageUtil;
|
||||
@@ -35,6 +36,7 @@ public class ViewVerifiedAccounts extends SDLinkSlashCommand {
|
||||
|
||||
@Override
|
||||
protected void execute(SlashCommandEvent event) {
|
||||
try {
|
||||
EmbedPaginator.Builder paginator = MessageUtil.defaultPaginator(event);
|
||||
|
||||
sdlinkDatabase.reloadCollection("verifiedaccounts");
|
||||
@@ -73,6 +75,10 @@ public class ViewVerifiedAccounts extends SDLinkSlashCommand {
|
||||
EmbedPaginator embedPaginator = paginator.build();
|
||||
|
||||
event.replyEmbeds(pages.get(0)).setEphemeral(false).queue(success -> success.retrieveOriginal().queue(msg -> embedPaginator.paginate(msg, 1)));
|
||||
} catch (Exception e) {
|
||||
if (SDLinkConfig.INSTANCE.generalConfig.debugging)
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user