From 6f5441bf1acf94303220db8f0e2558142d1c5adf Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 12 Apr 2020 01:42:16 +0800 Subject: [PATCH] Add `MessageChainBuilder.build` --- .../commonMain/kotlin/net.mamoe.mirai/message/data/builder.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/builder.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/builder.kt index cbb84720f..2fad6cf9b 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/builder.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/builder.kt @@ -161,4 +161,7 @@ class MessageChainBuilder private constructor( this.flushCache() return MessageChainImplByCollection(this) // fast-path, no need to constrain } + + /** 同 [asMessageChain] */ + fun build(): MessageChain = asMessageChain() } \ No newline at end of file