RedactionEventContent

@Serializable
data class RedactionEventContent(val redacts: EventId, val reason: String? = null, val externalUrl: String? = null) : MessageEventContent

See also

Constructors

Link copied to clipboard
constructor(redacts: EventId, reason: String? = null, externalUrl: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "external_url")
open override val externalUrl: String?
Link copied to clipboard
open override val mentions: Mentions? = null
Link copied to clipboard
@SerialName(value = "reason")
val reason: String?
Link copied to clipboard
@SerialName(value = "redacts")
val redacts: EventId
Link copied to clipboard
@SerialName(value = "m.relates_to")
open override val relatesTo: RelatesTo? = null

Functions

Link copied to clipboard
open override fun copyWith(relatesTo: RelatesTo?): RedactionEventContent

This should return the same instance, but with the relatesTo property set to the given value. It is used for event content replacing.