diff --git a/docs b/docs index 6f05464..74316ed 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 6f05464265b5812d632a48e4444b9608055f4896 +Subproject commit 74316edf05c6c03e132ee2995cd60b4c75bf00dd diff --git a/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/CQMessageChain.kt b/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/CQMessageChain.kt index 5543303..898be22 100644 --- a/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/CQMessageChain.kt +++ b/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/CQMessageChain.kt @@ -12,9 +12,6 @@ import cn.rtast.rob.enums.MusicShareType import cn.rtast.rob.enums.PokeMessage import cn.rtast.rob.enums.QQFace -inline fun cqMessageChain(builder: MessageChain.Builder.() -> Unit) = - MessageChain.Builder().apply(builder).build() - @Deprecated( "CQ Code message chain is not support now, use MessageChain instead", replaceWith = ReplaceWith("MessageChain"), diff --git a/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/dsl/MessageChainDSL.kt b/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/dsl/MessageChainDSL.kt index 7666953..2ffcf53 100644 --- a/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/dsl/MessageChainDSL.kt +++ b/ronebot-onebot-v11/src/main/kotlin/cn/rtast/rob/onebot/dsl/MessageChainDSL.kt @@ -4,9 +4,11 @@ * Date: 2025/1/27 */ +@file:Suppress("unused", "DEPRECATION") package cn.rtast.rob.onebot.dsl +import cn.rtast.rob.onebot.CQMessageChain import cn.rtast.rob.onebot.MessageChain /** @@ -15,3 +17,8 @@ import cn.rtast.rob.onebot.MessageChain inline fun messageChain(builder: MessageChain.Builder.() -> Unit) = MessageChain.Builder().apply(builder).build() +/** + * dsl 风格构造一个[CQMessageChain] + */ +inline fun cqMessageChain(builder: CQMessageChain.Builder.() -> Unit) = + CQMessageChain.Builder().apply(builder).build() \ No newline at end of file