🐛 fix arg message store

This commit is contained in:
yanyongyu
2021-12-23 22:16:55 +08:00
parent 76104d3237
commit 17f3c8fd09
6 changed files with 28 additions and 38 deletions

View File

@ -1,5 +1,5 @@
from nonebot.adapters import Event, Message
from nonebot.params import Arg, ArgStr, ArgEvent
from nonebot.params import Arg, ArgStr, ArgPlainText
async def arg(key: Message = Arg()) -> Message:
@ -10,5 +10,5 @@ async def arg_str(key: str = ArgStr()) -> str:
return key
async def arg_event(key: Event = ArgEvent()) -> Event:
async def arg_plain_text(key: str = ArgPlainText()) -> str:
return key