Thread class abstract

A thread channel.

Implemented types
Implementers

Constructors

Thread()

Properties

appliedTags List<Snowflake>?
If this thread is in a ForumChannel, the IDs of the ForumTags applied to this thread.
no setter
approximateMemberCount int
An approximate number of members in this thread.
no setter
archiveTimestamp DateTime
The time at which this thread's archive status was last updated.
no setter
autoArchiveDuration Duration
The time after which this thread will be archived.
no setter
createdAt DateTime
The time at which this thread was created.
no setter
flags ChannelFlags?
The flags this thread has applied.
no setter
guild PartialGuild
The guild this channel is in.
no setterinherited
guildId Snowflake
The ID of the Guild this channel is in.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
The id of this entity.
finalinherited
isArchived bool
Whether this thread is archived.
no setter
isLocked bool
Whether this thread is locked.
no setter
isNsfw bool
Whether this channel is marked as NSFW.
no setterinherited
lastMessage PartialMessage?
The last message sent in this channel, or null if no messages have been sent.
no setterinherited
lastMessageId Snowflake?
The ID of the last Message snt in this channel, or null if no messages have been sent.
no setterinherited
lastPinTimestamp DateTime?
The time at which the last message was pinned, or null if no messages have been pinned.
no setterinherited
manager ChannelManager
The manager for this entity.
finalinherited
messageCount int
An approximate count of messages in this channel.
no setter
messages MessageManager
A Manager for the Messages of this channel.
no setterinherited
name String
The name of this channel.
no setterinherited
owner PartialUser
The user that created this thread.
no setter
ownerId Snowflake
The ID of the user that created this thread.
no setter
ownerMember PartialMember
The member for the user that created this thread.
no setter
parent PartialChannel?
This channel's parent.
no setterinherited
parentId Snowflake?
The ID of this channel's parent.
no setterinherited
permissionOverwrites List<PermissionOverwrite>
The permission overwrites for members and roles in this channel.
no setterinherited
position int
The positing on this channel in the guild's channel list.
no setterinherited
rateLimitPerUser Duration?
The rate limit duration per user.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalMessagesSent int
The total number of messages sent in this thread, including deleted messages.
no setter
type ChannelType
The type of this channel.
no setterinherited

Methods

addThreadMember(Snowflake memberId) Future<void>
Add a member to this thread.
createInvite(InviteBuilder builder, {String? auditLogReason}) Future<Invite>
Create an invite to this channel.
inherited
defaultToString() String
Same as toString, but only called when dart:mirrors is not available.
inherited
delete({String? auditLogReason}) Future<void>
Delete this channel.
inherited
deletePermissionOverwrite(Snowflake id) Future<void>
Remove a permission overwrite from this channel.
inherited
fetch() Future<Channel>
Fetch this entity from the API.
inherited
fetchThreadMember(Snowflake memberId) Future<ThreadMember>
Fetch the ThreadMember for a given member.
fetchWebhooks() Future<List<Webhook>>
List the webhooks in this channel.
inherited
follow(Snowflake id) Future<void>
Follow another channel's announcement messages in this channel.
inherited
get() Future<Channel>
If this entity exists in the manager's cache, return the cached instance. Otherwise, fetch this entity and return it.
inherited
listInvites() Future<List<InviteWithMetadata>>
List the invites in this channel.
inherited
listThreadMembers({bool? withMembers, Snowflake? after, int? limit}) Future<List<ThreadMember>>
List the members of this thread.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeThreadMember(Snowflake memberId) Future<void>
Remove a member from this thread.
sendMessage(MessageBuilder builder) Future<Message>
Send a message to this channel.
inherited
toString() String
A string representation of this object.
inherited
triggerTyping() Future<void>
Trigger a typing indicator in this channel from the current user.
inherited
update(UpdateBuilder<Channel> builder) Future<Channel>
Update this channel.
inherited
updatePermissionOverwrite(PermissionOverwriteBuilder builder) Future<void>
Update or create a permission overwrite in this channel.
inherited

Operators

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