Support str type for aliases

This commit is contained in:
Richard Chien
2020-02-14 16:44:22 +08:00
parent cfa9fc3936
commit f7e4223dc6
2 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class CommandGroup:
shell_like: bool = ...): ...
def command(self, name: Union[str, CommandName_T], *,
aliases: Iterable[str] = ...,
aliases: Union[Iterable[str], str] = ...,
permission: int = ...,
only_to_me: bool = ...,
privileged: bool = ...,