We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a299dca commit 75f4fd2Copy full SHA for 75f4fd2
1 file changed
src/main/java/technobot/commands/utility/HelpCommand.java
@@ -57,7 +57,9 @@ public void execute(SlashCommandInteractionEvent event) {
57
58
OptionMapping option = event.getOption("category");
59
OptionMapping option2 = event.getOption("command");
60
- if (option != null) {
+ if (option != null && option2 != null) {
61
+ event.replyEmbeds(EmbedUtils.createError("Please only give one optional argument and try again.")).queue();
62
+ } else if (option != null) {
63
// Display category commands menu
64
Category category = Category.valueOf(option.getAsString().toUpperCase());
65
List<MessageEmbed> embeds = buildCategoryMenu(category, categories.get(category));
0 commit comments