UserMessagesDeletedEvent

data class UserMessagesDeletedEvent(val type: String, val createdAt: Date, val rawCreatedAt: String?, val user: User, val cid: String?, val channelType: String?, val channelId: String?, val hardDelete: Boolean) : ChatEvent, UserEvent

Event triggered after a user was banned and their messages were deleted. Triggered in two scenarios:

  1. User banned in a channel - all messages of the user in that channel were deleted (cid != null).

  2. User banned globally - all messages of the user across all channels were deleted (cid == null).

Constructors

Link copied to clipboard
constructor(type: String, createdAt: Date, rawCreatedAt: String?, user: User, cid: String?, channelType: String?, channelId: String?, hardDelete: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val cid: String?
Link copied to clipboard
open override val createdAt: Date
Link copied to clipboard
Link copied to clipboard
open override val rawCreatedAt: String?
Link copied to clipboard
open override val type: String
Link copied to clipboard
open override val user: User

Inherited properties

Link copied to clipboard
val seq: Int

Inherited functions

Link copied to clipboard

Enriches the wrapped Message from the ChatEvent with the Channel ID.