From f19f1b5b89b260adcd2d46df858ddaa38c88a30e Mon Sep 17 00:00:00 2001 From: SerinaNya <34389622+SerinaNya@users.noreply.github.com> Date: Sat, 13 Jan 2024 14:16:01 +0800 Subject: [PATCH] docs(avilla): update filter-basic --- docs/avilla/basic/hello-avilla/filter-basic.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/avilla/basic/hello-avilla/filter-basic.md b/docs/avilla/basic/hello-avilla/filter-basic.md index ecda2fb..4c7d57b 100644 --- a/docs/avilla/basic/hello-avilla/filter-basic.md +++ b/docs/avilla/basic/hello-avilla/filter-basic.md @@ -27,7 +27,7 @@ Filter 可以通过这样的方式判断 `Context.client` 是否满足模式 `:: ```python @broadcast.receiver(MessageReceived, dispatcher=[ - Filter.cx().client.follows("::group.member") + Filter.cx.client.follows("::group.member") ]) async def on_message_received(cx: Context): ... @@ -48,7 +48,7 @@ async def on_message_received(cx: Context): not_ = lambda x: lambda y: not x(y) @broadcast.receiver(MessageReceived, dispatcher=[ - Filter.cx().client.all( + Filter.cx.client.all( valid_access, service_alive, validated_user, @@ -60,4 +60,4 @@ async def on_message_received(cx: Context): ... ``` -具体提供了的运算符方法可以参考我们提供的 API Reference。 \ No newline at end of file +具体提供了的运算符方法可以参考我们提供的 API Reference。