Channel class

Constructors

Channel({required String id, required ChannelType type, String? guildId, int? position, List<Overwrite>? permissionOverwrites, String? name, String? topic, bool? nsfw, String? lastMessageId, int? bitrate, int? userLimit, int? rateLimitPerUser, List<User>? recipients, String? icon, String? ownerId, String? applicationId, String? parentId, String? lastPinTimestamp})

Properties

applicationId String?
final
bitrate int?
final
guildId String?
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
final
id String
final
lastMessageId String?
final
lastPinTimestamp String?
final
name String?
final
nsfw bool?
final
ownerId String?
final
parentId String?
final
permissionOverwrites List<Overwrite>?
final
position int?
final
rateLimitPerUser int?
final
recipients List<User>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topic String?
final
type ChannelType
final
userLimit int?
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) Channel