Represents a thread channel on Discord.
ExtendsTextBasedChannelMixin(BaseChannel, true, [ 'fetchWebhooks', 'createWebhook', 'setNSFW',])
The tags applied to this thread
The time at which this thread's archive status was last changed If the thread was never archived or unarchived, this is the time at which the thread was created
The timestamp when the thread's archive status was last changed If the thread was never archived or unarchived, this is the timestamp at which the thread was created
The amount of time (in minutes) after which the thread will automatically archive in case of no recent activity
The timestamp when this thread was created. This isn't available for threads created before 2022-01-09
Whether the thread is editable by the client user (name, archived, autoArchiveDuration)
The flags that are applied to the channel. This is only
nullin a PartialGroupDMChannel. In all other cases, it is not
The guild the thread is in
The id of the guild the channel is in
A collection of associated guild member objects of this thread's members
Whether members without the permission can invite other members to this thread. This property is always
nullin public threads.
Whether the thread is joinable by the client user
Whether the client user is a member of the thread.
Whether the thread is manageable by the client user, for deleting or editing rateLimitPerUser or locked.
The approximate count of users in this thread This stops counting at 50. If you need an approximate value higher than that, use
A manager of the members that are part of this thread
The approximate count of messages in this thread Threads created before July 1, 2022 may have an inaccurate count. If you need an approximate value higher than that, use
The name of the thread
The parent channel of this thread
Whether the client user can send messages in this thread
The number of messages ever sent in a thread, similar to messageCount except it will not decrement whenever a message is deleted
The type of the channel
Whether the thread is unarchivable by the client user
Whether the thread is viewable by the client user
Deletes this thread.
|reason||string||Yes||Reason for deleting this thread|
Edits this thread.
|options||ThreadEditOptions||No||The options to provide|
Fetches the owner of this thread. If the thread member object isn't needed, use ownerId instead.
|options||BaseFetchOptions||Yes||The options for fetching the member|
Fetches the message that started this thread, if any. The
Promisewill reject if the original message in a forum post is deleted or when the original message in the parent channel is deleted. If you just need the id of that message, use instead.
|options||BaseFetchOptions||Yes||Additional options for this fetch|
Makes the client user join the thread.
Makes the client user leave the thread.
Gets the overall set of permissions for a member or role in this thread's parent channel, taking overwrites into account.
Pins this thread from the forum channel (only applicable to forum threads).
|reason||string||Yes||Reason for pinning|
Set the applied tags for this channel (only applicable to forum threads)
Sets whether the thread is archived.
Sets the duration after which the thread will automatically archive in case of no recent activity.
Sets whether members without the permission can invite other members to this thread.
Sets whether the thread can be **unarchived** by anyone with the permission. When a thread is locked, only members with the permission can unarchive it.
Sets a new name for this thread.
When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.
Unpins this thread from the forum channel (only applicable to forum threads).
|reason||string||Yes||Reason for unpinning|