MiraiBotLeaveEvent

机器人被踢出群或在其他客户端主动退出一个群. 在事件广播前 Bot.groups 就已删除这个群.

此事件属于一个 群成员减少事件, 减少的这个成员便是bot自己。

See also

Types

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun after(): Any?
Link copied to clipboard
open suspend override fun before(): MiraiMember

退群前的成员,即当前bot在群众作为的成员。同 member

Link copied to clipboard
abstract suspend override fun group(): MiraiGroup

事件涉及的群。同 organization

Link copied to clipboard
abstract suspend override fun member(): MiraiMember

退群前的成员,即当前bot在群众作为的成员。

Link copied to clipboard
abstract suspend override fun operator(): MiraiMember?

操作者。如果bot为自行退出则不存在操作者。

Link copied to clipboard
open suspend override fun organization(): MiraiGroup

事件涉及的群。同 group

Link copied to clipboard
open suspend override fun source(): MiraiGroup

事件涉及的群。同 group

Link copied to clipboard
open suspend override fun user(): MiraiMember

退群前的成员,即当前bot在群众作为的成员。同 member

Properties

Link copied to clipboard
abstract override val actionType: ActionType
Link copied to clipboard
open override val after: Any?
Link copied to clipboard
open override val afterAsync: CompletableFuture<out Any?>
Link copied to clipboard
open override val before: Member
Link copied to clipboard
open override val beforeAsync: CompletableFuture<out Member>
Link copied to clipboard
abstract override val bot: MiraiBot

事件中的bot对象。

Link copied to clipboard
abstract val changedTime: Timestamp
Link copied to clipboard
open override val component: Component
Link copied to clipboard
open override val group: Group
Link copied to clipboard
open override val groupAsync: CompletableFuture<out Group>
Link copied to clipboard
abstract override val id: ID

事件的唯一标识。 Mirai事件中并不一定存在id,当原始事件中没有ID的情况下,将会生成一个随机ID。

Link copied to clipboard
open override val key: Event.Key<MiraiBotLeaveEvent>
Link copied to clipboard
open override val member: Member
Link copied to clipboard
open override val memberAsync: CompletableFuture<out Member>
Link copied to clipboard
open val operator: MemberInfo?
Link copied to clipboard
Link copied to clipboard
open override val organization: Group
Link copied to clipboard
open override val organizationAsync: CompletableFuture<out Group>
Link copied to clipboard
abstract override val originalEvent: BotLeaveEvent

原始的mirai事件对象

Link copied to clipboard
open val source: Any
Link copied to clipboard
Link copied to clipboard
abstract val timestamp: Timestamp
Link copied to clipboard
open override val user: Member
Link copied to clipboard
open override val userAsync: CompletableFuture<out Member>