ChannelConfig class

The class that contains the information about the configuration of a channel

Annotations
  • @JsonSerializable()

Constructors

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
ChannelConfig.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

automod String
Moderation configuration
final
commands List<Command>
List of available commands
final
connectEvents bool
True if the channel should send connect events
final
createdAt DateTime
Date of channel creation
final
hashCode int
The hash code for this object.
no setterinherited
maxMessageLength int
Max channel message length
final
messageRetention String
Duration of message retention
final
mutes bool
True if users can be muted
final
reactions bool
True if reaction are active for this channel
final
readEvents bool
True if readEvents are active for this channel
final
replies bool
True if reply message are active for this channel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
True if it's possible to perform a search in this channel
final
typingEvents bool
True if typing events should be sent for this channel
final
updatedAt DateTime
Date of last channel update
final
uploads bool
True if it's possible to upload files to this channel
final
urlEnrichment bool
True if urls appears as attachments
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize to json
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited