Channel class abstract

Implementers

Constructors

Channel(Client client, {required String id})

Properties

channel_type String
The type of channel. Either Group, DirectMessage or SavedMessages.
getter/setter pair
client Client
The Client that created this channel.
getter/setter pair
deleted bool
If the channel has been deleted
getter/setter pair
description String?
The channel description. Only present on TextChannel, VoiceChannel or GroupChannel.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon File?
The channel's icon, null if undefined
getter/setter pair
id String
The channel's ID.
getter/setter pair
members Map<String, User>?
All participants in this channel.
getter/setter pair
messages MessageManager
The messages sent in this channel.
getter/setter pair
name String?
The display name of the channel.
getter/setter pair
nonce String?
I have no idea what this is used for.
getter/setter pair
partial bool
Whether the channel is fully fetched. If false, only id is quaranteed to be present.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetch({bool preferCached = true}) Future<Channel>
Fetch the channel. Disable preferCached to force an API request, even if the channel is already cached.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(dynamic message) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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