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
fun KookReceiveMessageContent(isDirect: Boolean, source: Event<Event.Extra.Text>, bot: KookComponentBot)
Functions
Link copied to clipboard
通过 MessageDeleteRequest 删除当前消息。
Link copied to clipboard
Link copied to clipboard