MiraiMemberHonorChangeEvent

Member 荣誉改变时的事件, 目前只支持龙王. 此属于一种 变更事件, 变更源为一个群成员,变更前后为荣耀类型。 理论上来讲,beforeafter 不会同时为null,当 before 为null时,代表对应成员得到了此荣耀, 相反,如果 before 不为null但是 after 为null的时候,代表对应成员失去了此荣耀。

See also

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend override fun after(): GroupHonorType?

变更后荣誉。如果此值不为null,则 before 为null,代表为得到此荣耀。

Link copied to clipboard
abstract suspend override fun before(): GroupHonorType?

变更前荣耀,如果此值不为null,则 after 为null,代表为失去此荣耀。

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

所在群。

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

群成员。

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

所在群。同 group

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

涉及的群成员。同 member

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

群成员。同 member

Properties

Link copied to clipboard
open val after: Any?
Link copied to clipboard
Link copied to clipboard
open val before: Any?
Link copied to clipboard
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

群荣誉信息

Link copied to clipboard
abstract override val id: ID

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

Link copied to clipboard
open override val key: Event.Key<out MiraiMemberHonorChangeEvent>
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 override val organization: Group
Link copied to clipboard
open override val organizationAsync: CompletableFuture<out Group>
Link copied to clipboard
abstract override val originalEvent: MemberHonorChangeEvent

原始的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>