ChannelConfig class

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

Annotations

Constructors

ChannelConfig({String automod, List<Command> commands, bool connectEvents, DateTime createdAt, DateTime updatedAt, int maxMessageLength, String messageRetention, bool mutes, String name, bool reactions, bool readEvents, bool replies, bool search, bool typingEvents, bool uploads, bool urlEnrichment})
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. [...]
read-only, inherited
maxMessageLength int
Max channel message length
final
messageRetention String
Duration of message retention
final
mutes bool
True if users can be muted
final
name String
Name of the channel
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.
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Serialize to json
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited