mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
🎨 improve command implementation
This commit is contained in:
@ -394,9 +394,6 @@ sidebarDepth: 0
|
||||
* `Type[Matcher]`
|
||||
|
||||
|
||||
* `MatcherGroup`
|
||||
|
||||
|
||||
|
||||
## `on_regex(pattern, flags=0, rule=None, **kwargs)`
|
||||
|
||||
@ -510,9 +507,6 @@ sidebarDepth: 0
|
||||
* `Type[Matcher]`
|
||||
|
||||
|
||||
* `MatcherGroup`
|
||||
|
||||
|
||||
|
||||
## `load_plugin(module_path)`
|
||||
|
||||
|
@ -139,7 +139,7 @@ Rule(async_function, run_sync(sync_function))
|
||||
|
||||
|
||||
|
||||
## `command(command)`
|
||||
## `command(*cmds)`
|
||||
|
||||
|
||||
* **说明**
|
||||
@ -151,7 +151,7 @@ Rule(async_function, run_sync(sync_function))
|
||||
* **参数**
|
||||
|
||||
|
||||
* `command: Tuples[str, ...]`: 命令内容
|
||||
* `*cmds: Union[str, Tuple[str, ...]]`: 命令内容
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user