mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-11-04 08:56:42 +00:00 
			
		
		
		
	📝 Docs: 升级到 Docusaurus V3 (#2956)
This commit is contained in:
		@@ -96,7 +96,7 @@ class Other(Segment):
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
:::tips
 | 
			
		||||
:::tip
 | 
			
		||||
 | 
			
		||||
或许你注意到了 `Segment` 上有一个 `children` 属性。
 | 
			
		||||
 | 
			
		||||
@@ -291,7 +291,7 @@ msg.extend([Text("text")])
 | 
			
		||||
 | 
			
		||||
这里额外说明 `UniMessage.template` 的拓展控制符
 | 
			
		||||
 | 
			
		||||
相比 `Message`,UniMessage 对于 {:XXX} 做了另一类拓展。其能够识别例如 At(xxx, yyy) 或 Emoji(aaa, bbb)的字符串并执行
 | 
			
		||||
相比 `Message`,UniMessage 对于 `{:XXX}` 做了另一类拓展。其能够识别例如 At(xxx, yyy) 或 Emoji(aaa, bbb)的字符串并执行
 | 
			
		||||
 | 
			
		||||
以 At(...) 为例:
 | 
			
		||||
 | 
			
		||||
@@ -305,7 +305,7 @@ UniMessage(At("user", "123"))
 | 
			
		||||
UniMessage(At("user", "123"))
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
而在 `AlconnaMatcher` 中,{:XXX} 更进一步地提供了获取 `event` 和 `bot` 中的属性的功能:
 | 
			
		||||
而在 `AlconnaMatcher` 中,`{:XXX}` 更进一步地提供了获取 `event` 和 `bot` 中的属性的功能:
 | 
			
		||||
 | 
			
		||||
```python title=在AlconnaMatcher中使用通用消息段的拓展控制符
 | 
			
		||||
from arclet.alconna import Alconna, Args
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user