mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-30 19:00:33 +08:00
Remove common Message.toMiraiCode
This commit is contained in:
parent
f0a67d781e
commit
751a3731b0
@ -23,14 +23,4 @@ import kotlin.jvm.JvmName
|
||||
* 解析形如 "[mirai:]" 的 mirai 码, 即 [Message.toString] 返回的内容.
|
||||
*/
|
||||
@SinceMirai("1.1.0")
|
||||
fun String.parseMiraiCode(): MessageChain = parseMiraiCodeImpl()
|
||||
|
||||
/**
|
||||
* 将消息转为 'mirai 码' 表示形式.
|
||||
*
|
||||
* 各类型消息对应的格式:
|
||||
*
|
||||
*
|
||||
*/
|
||||
@SinceMirai("1.1.0")
|
||||
fun Message.toMiraiCode(): String = this.toString()
|
||||
fun String.parseMiraiCode(): MessageChain = parseMiraiCodeImpl()
|
Loading…
Reference in New Issue
Block a user