mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +08:00
Update docs
This commit is contained in:
parent
1e3cd7b597
commit
da6913f679
@ -121,11 +121,10 @@ at.toMiraiCode() // 结果为 `[mirai:at:123]`
|
|||||||
|
|
||||||
### 由 mirai 码字符串取得 `MessageChain` 实例
|
### 由 mirai 码字符串取得 `MessageChain` 实例
|
||||||
|
|
||||||
```
|
```kotlin
|
||||||
// Kotlin
|
|
||||||
val chain = "[mirai:atall]".parseMiraiCode()
|
val chain = "[mirai:atall]".parseMiraiCode()
|
||||||
|
```
|
||||||
// Java
|
```java
|
||||||
MessageChain chain = MiraiCode.parseMiraiCode("[mirai:atall]");
|
MessageChain chain = MiraiCode.parseMiraiCode("[mirai:atall]");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user