ThreadChannel class Null safety

Implemented types


archiveAfter ThreadArchiveTime
Time after what thread will be archived
late, final
archiveAt DateTime
Date when thread was archived
late, final
archived bool
True if thread is archived
late, final
channelType ChannelType
Type of this channel
late, final, inherited
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>
Id of Guild that the channel is in.
late, final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id Snowflake
ID of entity as Snowflake
final, inherited
invitable bool
Whether non-moderators can add other non-moderators to a thread; only available on private threads
late, final
isNsfw bool
Indicates if channel is nsfw
late, final, inherited
memberCount int
Approximate member count
late, final
messageCache MessageCache
A collection of messages sent to this channel.
late, final
messageCount int
Approximate message count
late, final
name String
The channel's name.
late, final, inherited
owner Cacheable<Snowflake, Member>
Owner of the thread
late, final
parentChannel Cacheable<Snowflake, GuildChannel>?
Id of parent channel
late, final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


addThreadMember(SnowflakeEntity user) Future<void>
Adds user to ThreadChannel
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. [...]
fetchMembers() Stream<ThreadMember>
Fetches from API current list of member that has access to that thread
fetchMessage(Snowflake messageId) Future<Message>
Returns Message downloaded from API
fetchPinnedMessages() Stream<Message>
Returns pinned Messages for channel.
getMessage(Snowflake id) Message?
Returns Message with given id from CACHE
leaveThread() Future<void>
Leaves this thread channel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
removeThreadMember(SnowflakeEntity user) Future<void>
Removes user from ThreadChannel
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. [...]