diff --git a/nonebot/params.py b/nonebot/params.py index 1aa7715f..be6baaee 100644 --- a/nonebot/params.py +++ b/nonebot/params.py @@ -188,7 +188,7 @@ class BotParam(Param): _BotChecker( Required, field=ModelField( - name="", + name=name, type_=param.annotation, class_validators=None, model_config=CustomConfig, @@ -229,7 +229,7 @@ class EventParam(Param): _EventChecker( Required, field=ModelField( - name="", + name=name, type_=param.annotation, class_validators=None, model_config=CustomConfig,