Simple Robot
5.0.0-Preview2
      Target filter
Search in API
Skip to content
    Simple Robot
simbot-component-onebot-v11-core/love.forte.simbot.component.onebot.v11.core.event.messageinteraction/OneBotSegmentsInteractionMessage/Companion/create

create

@JvmStatic
fun create(message: InteractionMessage, segments: List<OneBotMessageSegment>? = null): OneBotSegmentsInteractionMessage(source)

构建一个 OneBotSegmentsInteractionMessage 实例。

Parameters

message

当 segments 为 null 时,可用于解析 segments 的 InteractionMessage。 如果要被用于解析,请确保 message 的类型为 InteractionMessage.Text, InteractionMessage.Message 或 InteractionMessage.MessageContent。

Throws

IllegalArgumentException

如果 message 的类型不是 InteractionMessage.Text, InteractionMessage.Message 或 InteractionMessage.MessageContent。

Generated by Dokka
© 2024-2026 Simple Robot. All rights reserved.