mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-29 17:27:41 +00:00
Support str type for aliases
This commit is contained in:
@ -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 = ...,
|
||||
|
Reference in New Issue
Block a user