Commit 474e5481 authored by Him188's avatar Him188

Move MiraiCode from mirai-serialization to mirai-core

parent 22b9868f
......@@ -10,7 +10,6 @@
package net.mamoe.mirai.message.code
import net.mamoe.mirai.message.data.*
import net.mamoe.mirai.utils.MiraiExperimentalAPI
import net.mamoe.mirai.utils.SinceMirai
/**
......@@ -31,7 +30,6 @@ import net.mamoe.mirai.utils.SinceMirai
* @see FlashImage
* @see PokeMessage
*/
@MiraiExperimentalAPI
@SinceMirai("1.1.0")
public interface CodableMessage : Message {
/**
......@@ -39,6 +37,5 @@ public interface CodableMessage : Message {
*
* @suppress 警告: 此 API 可能在任何时刻被改变
*/
@MiraiExperimentalAPI
public fun toMiraiCode(): String = this.toString()
}
\ No newline at end of file
......@@ -23,4 +23,4 @@ import kotlin.jvm.JvmName
* 解析形如 "[mirai:]" 的 mirai 码, 即 [Message.toString] 返回的内容.
*/
@SinceMirai("1.1.0")
fun String.parseMiraiCode(): MessageChain = parseMiraiCodeImpl()
\ No newline at end of file
public fun String.parseMiraiCode(): MessageChain = parseMiraiCodeImpl()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment