ThreadChannel class

Inheritance
Implemented types

Properties

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

Methods

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.
override
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.
override
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
override
fetchPinnedMessages() Stream<Message>
Returns pinned Messages for channel.
override
getMessage(Snowflake id) Message?
Returns Message with given id from CACHE
override
leaveThread() Future<void>
Leaves this thread channel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
override
startTyping() Future<void>
Starts typing.
override
startTypingLoop() → void
Loops startTyping until stopTypingLoop is called.
override
stopTypingLoop() → void
Stops a typing loop if one is running.
override
toString() String
A string representation of this object.
inherited

Operators

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