mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 14:20:24 +08:00
Adjust experimental api notation
This commit is contained in:
parent
10240e8a1d
commit
f1d652d582
@ -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 {
|
|||||||
/**
|
/**
|
||||||
* 戳一戳
|
* 戳一戳
|
||||||
*/
|
*/
|
||||||
@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 = "使用伴生对象中的常量")
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user