QGMessageEvent

消息事件 的组件事件封装。

QGMessageEvent 作为一个基础事件类型,本身不提供过多的类型约束,参考更具体的实现类型。

Author

ForteScarlet

See also

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun reply(text: String): MessageReceipt
open suspend fun reply(message: MessageContent): MessageReceipt

abstract suspend override fun reply(message: Message): QGMessageReceipt

基于当前事件进行消息回复。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend override fun source(): Objective

接收到消息的本体。实现子类型来决定具体类型。

Properties

Link copied to clipboard
abstract override val bot: QGBot
Link copied to clipboard
open override val component: Component
Link copied to clipboard
abstract val eventRaw: String

接收到的事件的原始JSON字符串

Link copied to clipboard
abstract override val id: ID

事件ID。

Link copied to clipboard
abstract override val key: Event.Key<out QGMessageEvent>
Link copied to clipboard

接收到的消息内容。

Link copied to clipboard
open val source: Objective
Link copied to clipboard
Link copied to clipboard
abstract override val sourceEventEntity: Message

标准库接收到的原始事件内容。

Link copied to clipboard
abstract override val timestamp: Timestamp

消息发生(收到)的时间