diff --git a/src/main/java/net/pcsx2/hifumi/command/slash/CommandDynCmd.java b/src/main/java/net/pcsx2/hifumi/command/slash/CommandDynCmd.java index 45b47cd..876daa6 100644 --- a/src/main/java/net/pcsx2/hifumi/command/slash/CommandDynCmd.java +++ b/src/main/java/net/pcsx2/hifumi/command/slash/CommandDynCmd.java @@ -110,7 +110,7 @@ public void onExecute(SlashCommandInteractionEvent event) { subcommand.clearChoice(choiceStr); if (subcommand.getChoices().size() == 0) { - HifumiBot.getSelf().getDynCmdConfig().dynamicCommands.remove(commandStr); + command.clearSubcommand(subcommandStr); } else { command.putSubcommand(subcommand); HifumiBot.getSelf().getDynCmdConfig().dynamicCommands.put(commandStr, command);