NewsChannelThread
A thread channel instance whose parent is a NewsChannel.
Properties
Only available when creating a thread in a ForumChannel or MediaChannel.
The timestamp when the thread's archive status was last changed.
The time in which the thread will be auto archived after inactivity.
The timestamp when the thread was created.
The default duration setup pre-selected for this thread.
The flags of this channel, if present.
The guild behavior this channel is associated to.
Whether the channel is archived. Users cannot edit messages, add reactions, use slash commands, or join archived threads. The only operation that should happen within an archived thread is messages being deleted. Sending a message will automatically unarchive the thread, unless the thread has been locked by a moderator.
Threads that have isLocked set to true can only be unarchived by a user with the Manage Threads permission.
The behavior of the last message sent to this channel, if present.
The id of the last message sent to this channel, if present.
The timestamp of the last pin
The member of the current user in the thread.
An approximate count of users in this thread, stops counting at 50.
Requests to get all members of the current thread.
This channel formatted as a mention as used by the Discord API.
Only available when creating a thread in a ForumChannel or MediaChannel.
Number of messages (not including the initial message or deleted messages) in this thread.
Requests to get the pinned messages in this channel.
The amount of time a user has to wait before sending another message.
The supplier used to request entities.
Number of messages ever sent in this thread, it's similar to messageCount on message creation, but will not decrement the number when a message is deleted.
The type of this channel.
Functions
Adds the user identified by id from the current thread. Requires the thread is not locked. or current bot has Manage Threads permission
Requests to get this behavior as a Channel .
Requests to get the Channel represented by this ChannelBehavior.
Requests to get the Channel represented by this ChannelBehavior, returns null if the Channel isn't present.
Requests to get this behavior as a Channel, returns null if the channel isn't present.
Requests to create a message with only an embed.
Requests to create a message with only a MessageCreateBuilder.content.
Requests to create a message configured by the builder.
Requests to delete a message in this channel.
Retrieve the Channel associated with this behaviour from the provided EntitySupplier
Retrieve the Channel associated with this behaviour from the provided EntitySupplier returns null if the Channel isn't present.
Requests to get this channel's Guild, returns null if the guild isn't present.
Requests to get the last message sent to this channel, return null if no lastMessageId is present or if the message itself isn't present.
Requests to get a message with the given messageId.
Requests to get a message with the given messageId, returns null if the message isn't present or is not part of this channel.
Requests to get this channel's ThreadParentChannel.
Requests to get this channel's ThreadParentChannel, returns null if the thread parent isn't present.
Join the the current thread. Requires the thread is not locked. or current bot has Manage Threads permission
Leaves the current thread if the bot has already joined. Requires the thread is not locked. or current bot has Manage Threads permission
Removes the user identified by id from the current thread. Requires the thread is not locked. or current bot has Manage Threads permission
Returns a new GuildMessageChannel with the given strategy.