TextChannel class abstract

Generic interface for all text channels types

Inheritance
Implementers

Constructors

TextChannel()

Properties

channelType ChannelType
Type of this channel
latefinalinherited
client INyxx
Reference to client
finalinherited
createdAt DateTime
Gets creation timestamp included in Snowflake
no setterinherited
fileUploadLimit Future<int>
File upload limit for channel in bytes.
no setter
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
ID of entity as Snowflake
finalinherited
messageCache MessageCache
A collection of messages sent to this channel.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bulkRemoveMessages(Iterable<Message> messages) Future<void>
Bulk removes many messages by its ids. messages is list of messages ids to delete.
inherited
delete() Future<void>
Deletes channel if guild channel or closes DM if DM channel
inherited
dispose() Future<void>
Perform cleanup
inherited
downloadMessages({int limit = 50, Snowflake? after, Snowflake? around, Snowflake? before}) Stream<Message>
Gets several Message objects from API. Only one of after, before, around can be specified, otherwise, it will throw.
inherited
fetchMessage(Snowflake id) Future<Message>
Returns Message downloaded from API
inherited
fetchPinnedMessages() Stream<Message>
Returns pinned Messages for channel.
inherited
getMessage(Snowflake id) Message?
Returns Message with given id from CACHE
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(MessageBuilder builder) Future<Message>
Sends message to channel. Performs toString() on thing passed to content. Allows to send embeds with embed field.
inherited
startTyping() Future<void>
Starts typing.
inherited
startTypingLoop() → void
Loops startTyping until stopTypingLoop is called.
inherited
stopTypingLoop() → void
Stops a typing loop if one is running.
inherited
toString() String
A string representation of this object.
inherited

Operators

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