IThreadPreviewChannel class abstract

Implemented types

Constructors

IThreadPreviewChannel()

Properties

archived bool
If the thread has been archived
no setter
archivedAfter ThreadArchiveTime
How long till the thread is archived
no setter
archivedTime DateTime
When the thread will be archived
no setter
channelType ChannelType
Type of this channel
no setterinherited
client INyxx
Reference to client
no setterinherited
createdAt DateTime
Gets creation timestamp included in Snowflake
no setterinherited
fileUploadLimit Future<int>
File upload limit for channel in bytes.
no setterinherited
guild Cacheable<Snowflake, IGuild>
Guild where the thread is located
no setter
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
ID of entity as Snowflake
finalinherited
memberCount int
Approximate member count
no setter
memberPreview List<Cacheable<Snowflake, IMember>>
Preview of initial members
no setter
messageCache Map<Snowflake, IMessage>
A collection of messages sent to this channel.
no setterinherited
messageCount int
Approximate message count
no setter
name String
Name of the channel
no setter
owner Cacheable<Snowflake, IMember>
Initial author of the thread
no setter
parentChannel → CacheableTextChannel<ITextGuildChannel>
The text channel where the thread was made
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bulkRemoveMessages(Iterable<IMessage> messages) Future<void>
Bulk removes many referenced messages. Where messages is list of messages 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<IMessage>
Gets several IMessage objects from API.
inherited
fetchMessage(Snowflake id) Future<IMessage>
Returns IMessage downloaded from API
inherited
fetchPinnedMessages() Stream<IMessage>
Returns pinned IMessages for channel.
inherited
getMessage(Snowflake id) IMessage?
Returns Message with given id from CACHE
inherited
getThreadChannel() → ChannelCacheable<IThreadChannel>
Get the actual thread channel from the preview
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessage(MessageBuilder builder) Future<IMessage>
Sends message to channel. Allows to send embeds with MessageBuilder.embed() method.
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