From 84ff5a752e831f1587b585557fa0d7d86e350423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Tue, 20 Dec 2022 18:03:02 +0100 Subject: [PATCH] Improve help command title --- .../wtf/beatrice/hidekobot/commands/message/HelpCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/wtf/beatrice/hidekobot/commands/message/HelpCommand.java b/src/main/java/wtf/beatrice/hidekobot/commands/message/HelpCommand.java index 1e335e8..804e659 100644 --- a/src/main/java/wtf/beatrice/hidekobot/commands/message/HelpCommand.java +++ b/src/main/java/wtf/beatrice/hidekobot/commands/message/HelpCommand.java @@ -139,10 +139,13 @@ public class HelpCommand implements MessageCommand } } + String title = command.getCategory().getEmoji() + + " \"" + WordUtils.capitalizeFully(commandLabel + "\" help"); + EmbedBuilder embedBuilder = new EmbedBuilder(); embedBuilder.setColor(Cache.getBotColor()); - embedBuilder.setTitle(WordUtils.capitalizeFully(commandLabel + " help")); + embedBuilder.setTitle(title); embedBuilder.addField("Description", command.getDescription(), false); embedBuilder.addField("Usage", usage, false);