Skip to content

Commit

Permalink
[publish] 6.0.12 Update SimpleComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Dec 26, 2023
1 parent 740b41a commit 4ee70f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ interface SimpleComponent {
fun buildColored(transfer: TextTransfer.() -> Unit = {}): ComponentText {
return build { colored() }
}

/** 直接构建为 RawMessage */
fun buildToRaw(transfer: TextTransfer.() -> Unit = {}): String {
return buildColored(transfer).toRawMessage()
}
}

0 comments on commit 4ee70f3

Please sign in to comment.