From 5c7dff223c0fc8b309aba65e42bb83d249f09d97 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 28 May 2020 14:00:55 +0800 Subject: [PATCH] Mark `PttMessage` and `Voice` with `@MiraiExperimentalAPI` --- .../commonMain/kotlin/net.mamoe.mirai/message/data/Voice.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Voice.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Voice.kt index 244c2608b..444c3f8a8 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Voice.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Voice.kt @@ -1,8 +1,11 @@ package net.mamoe.mirai.message.data +import net.mamoe.mirai.utils.MiraiExperimentalAPI + /** * 需要通过上传到服务器的消息,如语音、文件 */ +@MiraiExperimentalAPI abstract class PttMessage : MessageContent { companion object Key : Message.Key { @@ -18,6 +21,7 @@ abstract class PttMessage : MessageContent { /** * 语音消息, 目前只支持接收和转发 */ +@MiraiExperimentalAPI class Voice( override val fileName: String, override val md5: ByteArray,