diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/server/MemberCountCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/server/MemberCountCommand.java index fd8152f..e26175e 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/server/MemberCountCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/server/MemberCountCommand.java @@ -27,7 +27,6 @@ import java.util.Map; public class MemberCountCommand extends BatCommand { @Override public void execute(BatGuild guild, @NonNull BatUser user, @NonNull MessageChannel channel, Member member, @NonNull SlashCommandInteraction interaction) { - EmbedBuilder embed = EmbedUtils.genericEmbed().setAuthor("Member Count"); Guild discordGuild = guild.getDiscordGuild(); int totalMembers = 0, totalUsers = 0, totalBots = 0; Map memberCounts = new HashMap<>(); @@ -42,27 +41,29 @@ public class MemberCountCommand extends BatCommand { } totalMembers++; } - - embed.setDescription(""" + interaction.replyEmbeds(EmbedUtils.genericEmbed() + .setDescription(""" + **Member Count** Total Members: `%s` Total Users: `%s` Total Bots: `%s` \s + **Member Presence** %s Online: `%s` %s Idle: `%s` %s Do Not Disturb: `%s` %s Offline: `%s`""".formatted( - NumberFormatter.format(totalMembers), - NumberFormatter.format(totalUsers), - NumberFormatter.format(totalBots), - Emojis.ONLINE_EMOJI, - NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.ONLINE, 0)), - Emojis.IDLE_EMOJI, - NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.IDLE, 0)), - Emojis.DND_EMOJI, - NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.DO_NOT_DISTURB, 0)), - Emojis.OFFLINE_EMOJI, - NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.OFFLINE, 0)))); - interaction.replyEmbeds(embed.build()).queue(); + NumberFormatter.format(totalMembers), + NumberFormatter.format(totalUsers), + NumberFormatter.format(totalBots), + Emojis.ONLINE_EMOJI, + NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.ONLINE, 0)), + Emojis.IDLE_EMOJI, + NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.IDLE, 0)), + Emojis.DND_EMOJI, + NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.DO_NOT_DISTURB, 0)), + Emojis.OFFLINE_EMOJI, + NumberFormatter.format(memberCounts.getOrDefault(OnlineStatus.OFFLINE, 0)))) + .build()).queue(); } } \ No newline at end of file