KookContactMessageEvent

abstract class KookContactMessageEvent : KookMessageEvent.Person, ContactMessageEvent

Kook 普通私聊消息事件。即来自bot以外的人发送的消息的类型。

此事件只会由 bot 以外的人触发。

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Key : BaseEventKey<KookContactMessageEvent>

Functions

Link copied to clipboard
abstract suspend override fun reply(text: String): KookMessageReceipt
abstract suspend override fun reply(message: Message): KookMessageReceipt
abstract suspend override fun reply(message: MessageContent): KookMessageReceipt

回复此事件。

Link copied to clipboard
open fun replyAsync(text: String): CompletableFuture<out MessageReceipt>
open fun replyAsync(message: Message): CompletableFuture<out MessageReceipt>
open fun replyAsync(message: MessageContent): CompletableFuture<out MessageReceipt>
Link copied to clipboard
open fun replyBlocking(text: String): MessageReceipt
open fun replyBlocking(message: Message): MessageReceipt
open fun replyBlocking(message: MessageContent): MessageReceipt
Link copied to clipboard
open suspend override fun source(): KookUserChat

私聊消息所来自的聊天会话。同 user

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract suspend override fun user(): KookUserChat

私聊消息所来自的聊天会话。

Properties

Link copied to clipboard
abstract override val bot: KookComponentBot

此事件对应的bot示例。

Link copied to clipboard
open override val component: Component
Link copied to clipboard
abstract override val id: ID
Link copied to clipboard
open override val key: Event.Key<out KookContactMessageEvent>
Link copied to clipboard

接收到的消息体。

Link copied to clipboard
open val source: Objective
Link copied to clipboard
open val sourceAsync: CompletableFuture<out Objective>
Link copied to clipboard

当前事件内部对应的原始事件实体。

Link copied to clipboard
abstract val timestamp: Timestamp
Link copied to clipboard
open override val user: Contact
Link copied to clipboard
open override val userAsync: CompletableFuture<out Contact>
Link copied to clipboard
open val visibleScope: Event.VisibleScope