UserBannedEvent constructor

UserBannedEvent({
  1. required String channelId,
  2. required String channelType,
  3. required String cid,
  4. required DateTime createdAt,
  5. required UserObject createdBy,
  6. DateTime? expiration,
  7. String? reason,
  8. required bool shadow,
  9. String? team,
  10. String type = 'user.banned',
  11. UserObject? user,
})

Returns a new UserBannedEvent instance.

Implementation

UserBannedEvent({
  required this.channelId,
  required this.channelType,
  required this.cid,
  required this.createdAt,
  required this.createdBy,
  this.expiration,
  this.reason,
  required this.shadow,
  this.team,
  this.type = 'user.banned',
  this.user,
});