mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-30 19:34:45 +08:00
25 lines
342 B
Markdown
25 lines
342 B
Markdown
|
---
|
||
|
title: liteyuki.message.rule
|
||
|
order: 1
|
||
|
icon: laptop-code
|
||
|
category: API
|
||
|
---
|
||
|
|
||
|
### ***class*** `Rule`
|
||
|
|
||
|
|
||
|
|
||
|
###   ***def*** `__init__(self, handler: Optional[RuleHandler]) -> None`
|
||
|
|
||
|
 
|
||
|
|
||
|
<details>
|
||
|
<summary>源代码</summary>
|
||
|
|
||
|
```python
|
||
|
def __init__(self, handler: Optional[RuleHandler]=None):
|
||
|
self.handler = handler
|
||
|
```
|
||
|
</details>
|
||
|
|