Skip to content

Commit cccc2b0

Browse files
committed
optimize(core): 隐藏部分未隐藏的挂起函数
1 parent 0f77c57 commit cccc2b0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

simbot-component-kook-core/src/commonMain/kotlin/love/forte/simbot/component/kook/message/KookChannelMessageDetailsContent.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public data class KookChannelMessageDetailsContent internal constructor(
100100
return details.quote?.asMessage()
101101
}
102102

103+
@JvmSynthetic
103104
override suspend fun referenceMessage(): KookMessageContent? {
104105
val quote = details.quote ?: return null
105106
val view = GetChannelMessageViewApi.create(quote.id).requestDataBy(bot)
@@ -113,6 +114,7 @@ public data class KookChannelMessageDetailsContent internal constructor(
113114
* 会抛出请求 [DeleteChannelMessageApi] 过程中可能出现的任何异常。
114115
*
115116
*/
117+
@JvmSynthetic
116118
override suspend fun delete(vararg options: DeleteOption) {
117119
val stdOpts = options.standardAnalysis()
118120
val result = try {

simbot-component-kook-core/src/commonMain/kotlin/love/forte/simbot/component/kook/message/KookReceiveMessageContent.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public class KookReceiveMessageContent internal constructor(
262262
}
263263
}
264264

265+
@JvmSynthetic
265266
override suspend fun referenceMessage(): KookMessageContent? {
266267
return if (isDirect) {
267268
val ref = referenceFromDirect(bot, source.msgId, source.authorId) ?: return null

0 commit comments

Comments
 (0)