ChannelConfig class

Constructors

ChannelConfig({List<String> allowedFlagReasons = const [], required ChannelConfigAutomodEnum automod, required ChannelConfigAutomodBehaviorEnum automodBehavior, Thresholds? automodThresholds, String? blocklist, ChannelConfigBlocklistBehaviorEnum? blocklistBehavior, List<BlockListOptions> blocklists = const [], List<String> commands = const [], required bool connectEvents, required DateTime createdAt, required bool customEvents, required bool markMessagesPending, required int maxMessageLength, required bool mutes, required String name, required bool polls, required bool pushNotifications, required bool quotes, required bool reactions, required bool readEvents, required bool reminders, required bool replies, required bool search, required bool typingEvents, required DateTime updatedAt, required bool uploads, required bool urlEnrichment})
Returns a new ChannelConfig instance.

Properties

allowedFlagReasons List<String>
getter/setter pair
automod ChannelConfigAutomodEnum
getter/setter pair
automodBehavior ChannelConfigAutomodBehaviorEnum
getter/setter pair
automodThresholds Thresholds?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
blocklist String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
blocklistBehavior ChannelConfigBlocklistBehaviorEnum?
getter/setter pair
blocklists List<BlockListOptions>
getter/setter pair
commands List<String>
List of commands that channel supports
getter/setter pair
connectEvents bool
getter/setter pair
createdAt DateTime
getter/setter pair
customEvents bool
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
markMessagesPending bool
getter/setter pair
maxMessageLength int
Maximum value: 20000
getter/setter pair
mutes bool
getter/setter pair
name String
getter/setter pair
polls bool
getter/setter pair
pushNotifications bool
getter/setter pair
quotes bool
getter/setter pair
reactions bool
getter/setter pair
readEvents bool
getter/setter pair
reminders bool
getter/setter pair
replies bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
getter/setter pair
typingEvents bool
getter/setter pair
updatedAt DateTime
getter/setter pair
uploads bool
getter/setter pair
urlEnrichment bool
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) ChannelConfig?
Returns a new ChannelConfig instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<ChannelConfig>
mapFromJson(dynamic json) Map<String, ChannelConfig>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<ChannelConfig>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.