ChannelConfig constructor

ChannelConfig({
  1. List<String> allowedFlagReasons = const [],
  2. required ChannelConfigAutomodEnum automod,
  3. required ChannelConfigAutomodBehaviorEnum automodBehavior,
  4. Thresholds? automodThresholds,
  5. String? blocklist,
  6. ChannelConfigBlocklistBehaviorEnum? blocklistBehavior,
  7. List<BlockListOptions> blocklists = const [],
  8. List<String> commands = const [],
  9. required bool connectEvents,
  10. required DateTime createdAt,
  11. required bool customEvents,
  12. required bool markMessagesPending,
  13. required int maxMessageLength,
  14. required bool mutes,
  15. required String name,
  16. int? partitionSize,
  17. int? partitionTtl,
  18. required bool polls,
  19. required bool pushNotifications,
  20. required bool quotes,
  21. required bool reactions,
  22. required bool readEvents,
  23. required bool reminders,
  24. required bool replies,
  25. required bool search,
  26. required bool typingEvents,
  27. required DateTime updatedAt,
  28. required bool uploads,
  29. required bool urlEnrichment,
})

Returns a new ChannelConfig instance.

Implementation

ChannelConfig({
  this.allowedFlagReasons = const [],
  required this.automod,
  required this.automodBehavior,
  this.automodThresholds,
  this.blocklist,
  this.blocklistBehavior,
  this.blocklists = const [],
  this.commands = const [],
  required this.connectEvents,
  required this.createdAt,
  required this.customEvents,
  required this.markMessagesPending,
  required this.maxMessageLength,
  required this.mutes,
  required this.name,
  this.partitionSize,
  this.partitionTtl,
  required this.polls,
  required this.pushNotifications,
  required this.quotes,
  required this.reactions,
  required this.readEvents,
  required this.reminders,
  required this.replies,
  required this.search,
  required this.typingEvents,
  required this.updatedAt,
  required this.uploads,
  required this.urlEnrichment,
});