From d5ee54d0117f6b95f2d4b12d3e853f0829c02447 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 27 Jun 2024 11:45:06 +0100 Subject: [PATCH] don't use embed fields for botstats --- .../bat/command/impl/BotStatsCommand.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/command/impl/BotStatsCommand.java b/src/main/java/cc/fascinated/bat/command/impl/BotStatsCommand.java index 9bf3b0c..79ef472 100644 --- a/src/main/java/cc/fascinated/bat/command/impl/BotStatsCommand.java +++ b/src/main/java/cc/fascinated/bat/command/impl/BotStatsCommand.java @@ -24,11 +24,12 @@ public class BotStatsCommand extends BatCommand { @Override public void execute(BatGuild guild, @NonNull BatUser user, @NonNull MessageChannel channel, Member member, @NonNull SlashCommandInteraction interaction) { JDA jda = DiscordService.JDA; - interaction.replyEmbeds(EmbedUtils.genericEmbed() - .setDescription("An overview of the bot statistics") - .addField("Guilds", jda.getGuilds().size() + "", true) - .addField("Users", jda.getUsers().size() + "", true) - .addField("Gateway Ping", jda.getGatewayPing() + "ms", true) - .build()).queue(); + + interaction.replyEmbeds(EmbedUtils.genericEmbed().setDescription( + "**Bot Statistics**\n" + + "➜ Guilds: %s\n".formatted(jda.getGuilds().size()) + + "➜ Users: %s\n".formatted(jda.getUsers().size()) + + "➜ Gateway Ping: %sms".formatted(jda.getGatewayPing()) + ).build()).queue(); } }