Channel class abstract

Represents a discord Channel

Extension for TextChannel

Implementers

Constructors

Channel({required String id, required String? name, required int type, required Guild? guild})

Properties

guild Guild?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
name String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
final

Methods

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

Operators

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

Static Methods

fromID(String id) Future<Channel>
Retrieves a Channel of any type using the channel id