mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +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
|
||||
|
||||
@SinceMirai("0.31.0")
|
||||
@MiraiExperimentalAPI
|
||||
sealed class HummerMessage : MessageContent {
|
||||
companion object Key : Message.Key<HummerMessage>
|
||||
}
|
||||
@ -25,8 +24,8 @@ sealed class HummerMessage : MessageContent {
|
||||
/**
|
||||
* 戳一戳
|
||||
*/
|
||||
@MiraiExperimentalAPI
|
||||
@SinceMirai("0.31.0")
|
||||
@MiraiExperimentalAPI
|
||||
@OptIn(MiraiInternalAPI::class)
|
||||
class PokeMessage @MiraiInternalAPI(message = "使用伴生对象中的常量") constructor(
|
||||
val type: Int,
|
||||
@ -59,6 +58,7 @@ class PokeMessage @MiraiInternalAPI(message = "使用伴生对象中的常量")
|
||||
val FangDaZhao = PokeMessage(6, -1)
|
||||
}
|
||||
|
||||
@OptIn(MiraiExperimentalAPI::class)
|
||||
private val stringValue = "[mirai:Poke($type, $id)]"
|
||||
|
||||
override fun toString(): String = stringValue
|
||||
|
Loading…
Reference in New Issue
Block a user