From 31b6df5b3910b044df0caed95d45069dbc8bbf4c Mon Sep 17 00:00:00 2001 From: Komorebi <110453675+KomoriDev@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:46:39 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20Docs:=20=E4=BF=AE=E5=A4=8D=20Alconna?= =?UTF-8?q?=20=E4=B8=AD=20`CommandResult`=20=E6=8F=8F=E8=BF=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20(#2282)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/docs/best-practice/alconna/matcher.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/best-practice/alconna/matcher.md b/website/docs/best-practice/alconna/matcher.md index e51aec5e..54f35c63 100644 --- a/website/docs/best-practice/alconna/matcher.md +++ b/website/docs/best-practice/alconna/matcher.md @@ -96,7 +96,7 @@ async def login_got(password: str = AlconnaArg("password")): 可以看到,本插件提供了几类额外的模型: -- `CommandResult`: 解析结果,包括了源命令 `command: Alconna` ,解析结果 `result: Arparma`,以及可能的输出信息 `output: str | None` 字段 +- `CommandResult`: 解析结果,包括了源命令 `source: Alconna` ,解析结果 `result: Arparma`,以及可能的输出信息 `output: str | None` 字段 - `Match`: 匹配项,表示参数是否存在于 `all_matched_args` 内,可用 `Match.available` 判断是否匹配,`Match.result` 获取匹配的值 - `Query`: 查询项,表示参数是否可由 `Arparma.query` 查询并获得结果,可用 `Query.available` 判断是否查询成功,`Query.result` 获取查询结果