MiraiBotRegisteredEvent

abstract class MiraiBotRegisteredEvent : BotRegisteredEvent, MiraiInternalBotEvent(source)

当一个 MiraiBot 经由 MiraiBotManager.register 而注册得到后触发的事件。

由于 MiraiBotManager.register 并非可挂起函数,因此 register 中对bot的注册逻辑执行完成后会立刻返回,而对于事件的推送会异步的进行。

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Key : BaseInternalKey<MiraiBotRegisteredEvent>

Properties

Link copied to clipboard
abstract override val bot: MiraiBot

被注册的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: InternalEvent.Key<out InternalEvent>
Link copied to clipboard
abstract val timestamp: Timestamp