Fix exception when running subcommand without enough arguments
This commit is contained in:
parent
6a74a360ca
commit
aac1f267d7
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ class CommandHandler:
|
||||||
@property
|
@property
|
||||||
def __mb_prefix__(self) -> str:
|
def __mb_prefix__(self) -> str:
|
||||||
if self.__mb_parent__:
|
if self.__mb_parent__:
|
||||||
return f"{self.__mb_parent__.__mb_prefix__} {self.__mb_name__}"
|
return (f"!{self.__mb_parent__.__mb_get_name__(self.__bound_instance__)} "
|
||||||
|
f"{self.__mb_name__}")
|
||||||
return f"!{self.__mb_name__}"
|
return f"!{self.__mb_name__}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue