Flag

@Immutable
data class Flag(    val user: User,     val targetUser: User?,     val targetMessageId: String,     val reviewedBy: String,     val createdByAutomod: Boolean,     val createdAt: Date?,     val updatedAt: Date,     val reviewedAt: Date?,     val approvedAt: Date?,     val rejectedAt: Date?)

Model holding data about a user flag.

Parameters

user

The user who created the flag.

targetUser

The user who was flagged.

targetMessageId

The ID of the message that was flagged.

reviewedBy

The user who reviewed the flag.

createdByAutomod

True if the flag was created by the automod.

createdAt

The date when the flag was created.

updatedAt

The date when the flag was last updated.

reviewedAt

The date when the flag was reviewed.

approvedAt

The date when the flag was approved.

rejectedAt

The date when the flag was rejected.

Constructors

Link copied to clipboard
constructor(    user: User,     targetUser: User?,     targetMessageId: String,     reviewedBy: String,     createdByAutomod: Boolean,     createdAt: Date?,     updatedAt: Date,     reviewedAt: Date?,     approvedAt: Date?,     rejectedAt: Date?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val user: User