ChannelConfig constructor
ChannelConfig({
- String automod = 'flag',
- List<
Command> commands = const [], - bool connectEvents = false,
- DateTime? createdAt,
- DateTime? updatedAt,
- int maxMessageLength = 0,
- String messageRetention = '',
- bool mutes = false,
- bool reactions = false,
- bool readEvents = false,
- bool replies = false,
- bool search = false,
- bool typingEvents = false,
- bool uploads = false,
- 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();