mirai-core / net.mamoe.mirai.message.data / MessageSourceAmender

MessageSourceAmender

@SinceMirai("0.39.0") interface MessageSourceAmender

仅于 copyAmend 中修改 MessageSource

Properties

fromUin

abstract var fromUin: Long

id

abstract var id: Int

internalId

abstract var internalId: Int

kind

abstract var kind: Kind

originalMessage

abstract var originalMessage: MessageChain

targetUin

abstract var targetUin: Long

time

abstract var time: Int

Functions

metadataFrom

从另一个 MessageSource 中复制 id, internalId, time

open fun metadataFrom(another: MessageSource): Unit