ThreadPreviewChannel class Null safety

Given when a thread is created as only partial information is available. If you want the final channel use getThreadChannel

Implemented types


archived bool
If the thread has been archived
final, read / write, late
archivedAfter ThreadArchiveTime
How long till the thread is archived
final, read / write, late
archivedTime DateTime
When the thread will be archived
final, read / write, late
channelType ChannelType
Type of this channel
final, read / write, inherited, late
client INyxx
Reference to client
final, inherited
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
fileUploadLimit Future<int>
File upload limit for channel in bytes.
read-only, override
guild Cacheable<Snowflake, Guild>
Guild where the thread is located
final, read / write, late
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
memberCount int
Approximate member count
final, read / write, late
memberPreview List<Cacheable<Snowflake, Member>>
Preview of initial members
final, read / write, late
messageCache MessageCache
A collection of messages sent to this channel.
final, late
messageCount int
Approximate message count
final, read / write, late
name String
Name of the channel
final, read / write, late
owner Cacheable<Snowflake, Member>
Initial author of the thread
final, read / write, late
parentChannel CacheableTextChannel<TextChannel>
The text channel where the thread was made
final, read / write, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


bulkRemoveMessages(Iterable<SnowflakeEntity> messages) Future<void>
Bulk removes many messages by its ids. messages is list of messages ids to delete. [...]
delete() Future<void>
Deletes channel if guild channel or closes DM if DM channel
dispose() Future<void>
Perform cleanup
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. [...]
fetchMessage(Snowflake messageId) Future<Message>
Returns Message downloaded from API
getMessage(Snowflake id) Message?
Returns Message with given id from CACHE
getThreadChannel() → _ChannelCacheable<ThreadChannel>
Get the actual thread channel from the preview
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
sendMessage(MessageBuilder builder) Future<Message>
Sends message to channel. Performs toString() on thing passed to content. Allows to send embeds with embed field. [...]
startTyping() Future<void>
Starts typing.
startTypingLoop() → void
Loops startTyping until stopTypingLoop is called.
stopTypingLoop() → void
Stops a typing loop if one is running.
toString() String
A string representation of this object. [...]


operator ==(dynamic other) bool
The equality operator. [...]