✏️ fix hook typo

This commit is contained in:
yanyongyu
2022-01-23 11:48:35 +08:00
parent 46757a315b
commit 5f3902fe61
4 changed files with 14 additions and 14 deletions

View File

@ -142,7 +142,7 @@ class Bot(abc.ABC):
def on_calling_api(cls, func: T_CallingAPIHook) -> T_CallingAPIHook:
"""调用 api 预处理。
插槽函数参数:
钩子函数参数:
- bot: 当前 bot 对象
- api: 调用的 api 名称
@ -155,7 +155,7 @@ class Bot(abc.ABC):
def on_called_api(cls, func: T_CalledAPIHook) -> T_CalledAPIHook:
"""调用 api 后处理。
插槽函数参数:
钩子函数参数:
- bot: 当前 bot 对象
- exception: 调用 api 时发生的错误