Skip to content

Commit

Permalink
Merge pull request #5 from SerinaNya/patch-1
Browse files Browse the repository at this point in the history
docs(avilla): update filter-basic
  • Loading branch information
GreyElaina committed Jan 13, 2024
2 parents c966051 + f19f1b5 commit e457e0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/avilla/basic/hello-avilla/filter-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
...
Expand All @@ -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,
Expand All @@ -60,4 +60,4 @@ async def on_message_received(cx: Context):
...
```

具体提供了的运算符方法可以参考我们提供的 API Reference。
具体提供了的运算符方法可以参考我们提供的 API Reference。

0 comments on commit e457e0e

Please sign in to comment.