KookReceiveMessageContent

class KookReceiveMessageContent(isDirect: Boolean, source: Event<Event.Extra.Text>, bot: KookComponentBot) : ReceivedMessageContent

Kook 消息事件所收到的消息正文类型。

在 Kook 中,一个完整的接收消息所得到 messages 中的元素可能是经过拆解/解析/冗余、扩展的。 如果你希望直接根据真实消息进行复读,则请直接使用 KookReceiveMessageContent 本身作为消息发送的实体而不是获取其中的 messages;同样的原因,如果你需要先对消息进行处理, 请注意消息链中的冗余消息。

Author

ForteScarlet

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun delete(): Boolean

通过 MessageDeleteRequest 删除当前消息。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open override val messageId: ID

消息ID。

Link copied to clipboard
open override val messages: Messages

Kook 消息事件中所收到的消息列表。

Link copied to clipboard
open val plainText: String
Link copied to clipboard

得到消息的原始正文信息。同 sourceEvent.content

Link copied to clipboard

消息接收到的原始消息内容。