Ban constructor

Ban({
  1. Channel? channel,
  2. required DateTime createdAt,
  3. UserObject? createdBy,
  4. DateTime? expires,
  5. String? reason,
  6. required bool shadow,
  7. UserObject? target,
})

Returns a new Ban instance.

Implementation

Ban({
  this.channel,
  required this.createdAt,
  this.createdBy,
  this.expires,
  this.reason,
  required this.shadow,
  this.target,
});