UserBannedEvent constructor

UserBannedEvent({
  1. Map<String, Object> channelCustom = const {},
  2. String? channelId,
  3. int? channelMemberCount,
  4. int? channelMessageCount,
  5. String? channelType,
  6. String? cid,
  7. required DateTime createdAt,
  8. UserResponseCommonFields? createdBy,
  9. Map<String, Object> custom = const {},
  10. DateTime? expiration,
  11. String? reason,
  12. DateTime? receivedAt,
  13. bool? shadow,
  14. String? team,
  15. int? totalBans,
  16. String type = 'user.banned',
  17. required UserResponseCommonFields user,
})

Returns a new UserBannedEvent instance.

Implementation

UserBannedEvent({
  this.channelCustom = const {},
  this.channelId,
  this.channelMemberCount,
  this.channelMessageCount,
  this.channelType,
  this.cid,
  required this.createdAt,
  this.createdBy,
  this.custom = const {},
  this.expiration,
  this.reason,
  this.receivedAt,
  this.shadow,
  this.team,
  this.totalBans,
  this.type = 'user.banned',
  required this.user,
});