ChannelConfig constructor

ChannelConfig({
  1. String automod = 'flag',
  2. List<Command> commands = const [],
  3. bool connectEvents = false,
  4. DateTime? createdAt,
  5. DateTime? updatedAt,
  6. int maxMessageLength = 0,
  7. String messageRetention = '',
  8. bool mutes = false,
  9. bool reactions = false,
  10. bool readEvents = false,
  11. bool replies = false,
  12. bool search = false,
  13. bool typingEvents = false,
  14. bool uploads = false,
  15. bool urlEnrichment = false,
})

Constructor used for json serialization

Implementation

ChannelConfig({
  this.automod = 'flag',
  this.commands = const [],
  this.connectEvents = false,
  DateTime? createdAt,
  DateTime? updatedAt,
  this.maxMessageLength = 0,
  this.messageRetention = '',
  this.mutes = false,
  this.reactions = false,
  this.readEvents = false,
  this.replies = false,
  this.search = false,
  this.typingEvents = false,
  this.uploads = false,
  this.urlEnrichment = false,
})  : createdAt = createdAt ?? DateTime.now(),
      updatedAt = updatedAt ?? DateTime.now();