OneBotRequestEvent

interface OneBotRequestEvent : OneBotBotEvent, RequestEvent(source)

OneBot组件中的 事件请求 的组件事件类型。

Author

ForteScarlet

See also

Inheritors

Properties

Link copied to clipboard
abstract override val sourceEvent: OBSourceRequestEvent

来自事件JSON的反序列化数据体。

Inherited properties

Link copied to clipboard
abstract override val bot: OneBotBot
Link copied to clipboard
open override val component: Component
Link copied to clipboard
abstract override val id: ID
Link copied to clipboard
abstract val message: String?
Link copied to clipboard
open val postType: String

事件类型

Link copied to clipboard
open val selfId: LongID

收到事件的机器人 QQ 号

Link copied to clipboard
abstract val sourceEventRaw: String?

如果能够支持,则获取来自事件JSON的原始字符串。 不支持、无法获取等情况下得到 null

Link copied to clipboard
open override val time: Timestamp

事件发生的时间戳

Link copied to clipboard
abstract val type: RequestEvent.Type

Functions

Link copied to clipboard
abstract suspend override fun accept()
abstract suspend override fun accept(vararg options: AcceptOption)

接受请求

Link copied to clipboard
abstract suspend override fun reject()
abstract suspend override fun reject(vararg options: RejectOption)

拒绝请求