mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-08 03:46:18 +08:00
Adjust
This commit is contained in:
parent
218a6c5665
commit
128cb8ce29
@ -32,8 +32,11 @@ CommandHandler_T = Callable[['CommandSession'], Any]
|
|||||||
|
|
||||||
|
|
||||||
class Command:
|
class Command:
|
||||||
__slots__ = ('name', 'func', 'permission',
|
__slots__ = ('name', 'func',
|
||||||
'only_to_me', 'privileged', 'args_parser_func')
|
'permission',
|
||||||
|
'only_to_me',
|
||||||
|
'privileged',
|
||||||
|
'args_parser_func')
|
||||||
|
|
||||||
def __init__(self, *,
|
def __init__(self, *,
|
||||||
name: CommandName_T,
|
name: CommandName_T,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user