MiraiMemberMuteRelateEvent

群成员禁言相关事件。

与bot相关的禁言事件可以参考 MiraiBotMuteRelateEvent

See also

Types

Link copied to clipboard

Functions

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

变更前是否为禁言。与 before 互为反。

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

变更前是否为禁言。与 after 互为反。

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
abstract val duration: Duration

剩余禁言时间的时长。

Link copied to clipboard
abstract val durationSeconds: Int

剩余禁言时间的时长,单位为秒。

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
abstract val isMute: Boolean

此事件代表的是否为群成员被禁言了。与 after 的值一致。

Link copied to clipboard
abstract override val key: Event.Key<out MiraiMemberMuteRelateEvent<*>>
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: E

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

Inheritors

Link copied to clipboard
Link copied to clipboard