ChannelConfig class

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

Annotations
  • @JsonSerializable.new()

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 polls = false, PushLevel? pushLevel, bool pushNotifications = true, ChatPreferences? chatPreferences, bool typingEvents = false, bool uploads = false, bool urlEnrichment = false, bool skipLastMsgUpdateForSystemMsgs = false, bool userMessageReminders = false, bool markMessagesPending = false, bool deliveryEvents = false, bool sharedLocations = 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
chatPreferences → ChatPreferences?
Granular per-category push preferences for this channel.
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
deliveryEvents → bool
Whether delivery events are enabled for this channel.
final
hashCode → int
The hash code for this object.
no setterinherited
markMessagesPending → bool
Whether pending messages are enabled for this channel.
final
maxMessageLength → int
Max channel message length
final
messageRetention → String
Duration of message retention
final
mutes → bool
True if users can be muted
final
polls → bool
True if polls are active for this channel
final
pushLevel → PushLevel?
The push level for this channel.
final
pushNotifications → bool
True if this channel type supports push notifications.
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
sharedLocations → bool
True if shared locations are enabled for this channel.
final
skipLastMsgUpdateForSystemMsgs → bool
If true the last message at date will not be updated when a system message is added.
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
userMessageReminders → bool
True if the user can set reminders for messages in this channel.
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