Commit f1d652d5 authored by Him188's avatar Him188

Adjust experimental api notation

parent 10240e8a
...@@ -17,7 +17,6 @@ import net.mamoe.mirai.utils.SinceMirai ...@@ -17,7 +17,6 @@ import net.mamoe.mirai.utils.SinceMirai
import kotlin.jvm.JvmField import kotlin.jvm.JvmField
@SinceMirai("0.31.0") @SinceMirai("0.31.0")
@MiraiExperimentalAPI
sealed class HummerMessage : MessageContent { sealed class HummerMessage : MessageContent {
companion object Key : Message.Key<HummerMessage> companion object Key : Message.Key<HummerMessage>
} }
...@@ -25,8 +24,8 @@ sealed class HummerMessage : MessageContent { ...@@ -25,8 +24,8 @@ sealed class HummerMessage : MessageContent {
/** /**
* 戳一戳 * 戳一戳
*/ */
@MiraiExperimentalAPI
@SinceMirai("0.31.0") @SinceMirai("0.31.0")
@MiraiExperimentalAPI
@OptIn(MiraiInternalAPI::class) @OptIn(MiraiInternalAPI::class)
class PokeMessage @MiraiInternalAPI(message = "使用伴生对象中的常量") constructor( class PokeMessage @MiraiInternalAPI(message = "使用伴生对象中的常量") constructor(
val type: Int, val type: Int,
...@@ -59,6 +58,7 @@ class PokeMessage @MiraiInternalAPI(message = "使用伴生对象中的常量") ...@@ -59,6 +58,7 @@ class PokeMessage @MiraiInternalAPI(message = "使用伴生对象中的常量")
val FangDaZhao = PokeMessage(6, -1) val FangDaZhao = PokeMessage(6, -1)
} }
@OptIn(MiraiExperimentalAPI::class)
private val stringValue = "[mirai:Poke($type, $id)]" private val stringValue = "[mirai:Poke($type, $id)]"
override fun toString(): String = stringValue override fun toString(): String = stringValue
......
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