From 9d38c435763a19b2c0aa70a54fd9bf9d1383c2fa Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 15 Jan 2019 15:47:30 +0200 Subject: [PATCH] Fix mistake in __mb_subcommands_list__ --- maubot/handlers/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/handlers/command.py b/maubot/handlers/command.py index 4624ea6..9d4fcfa 100644 --- a/maubot/handlers/command.py +++ b/maubot/handlers/command.py @@ -158,7 +158,7 @@ class CommandHandler: @property def __mb_subcommands_list__(self) -> str: - return f"**Subcommands:** {', '.join(self.__mb_subcommands__.keys())}" + return f"**Subcommands:** {', '.join(sc.__mb_name__ for sc in self.__mb_subcommands__)}" @property def __mb_usage_without_subcommands__(self) -> str: