Skip to content

Commit

Permalink
Adjust experimental api notation
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Mar 29, 2020
1 parent 10240e8 commit f1d652d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ 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>
}

/**
* 戳一戳
*/
@MiraiExperimentalAPI
@SinceMirai("0.31.0")
@MiraiExperimentalAPI
@OptIn(MiraiInternalAPI::class)
class PokeMessage @MiraiInternalAPI(message = "使用伴生对象中的常量") constructor(
val type: Int,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f1d652d

Please sign in to comment.