IThreadPreviewChannel class Null safety

Implemented types

Constructors

IThreadPreviewChannel()

Properties

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

Methods

bulkRemoveMessages(Iterable<IMessage> 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<IMessage>
Gets several IMessage objects from API. Only one of after, before, around can be specified, otherwise, it will throw. [...]
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 non-existent method or property is accessed. [...]
inherited
sendMessage(MessageBuilder builder) Future<IMessage>
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