Table of Contents

Class DiscordThreadChannel

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a Discord thread in a channel.

public class DiscordThreadChannel : DiscordChannel
Inheritance
object
DiscordThreadChannel
Inherited Members
Extension Methods

Properties

AppliedTagIds

Gets the IDs of the tags applied to this forum post.

AppliedTags

Gets the tags applied to this forum post.

CreatorId

Gets the ID of this thread's creator.

CurrentMember

Represents the current member for this thread. This will have a value if the user has joined the thread.

IsNew

Gets whether this thread has been newly created. This property is not populated when fetched by REST.

MemberCount

Gets the approximate count of members in a thread, capped to 50.

MessageCount

Gets the approximate count of messages in a thread, capped to 50.

ThreadMetadata

Gets the approximate count of members in a thread, up to 50.

Methods

AddThreadMemberAsync(DiscordMember)

Adds the given DiscordMember to this thread. Requires an not archived thread and send message permissions.

GetThreadMemberAsync(DiscordMember)

Returns a thread member object for the specified user if they are a member of the thread, returns a 404 response otherwise.

JoinThreadAsync()

Makes the current user join the thread.

LeaveThreadAsync()

Makes the current user leave the thread.

ListJoinedMembersAsync()

Returns a full list of the thread members in this thread. Requires the GuildMembers intent specified in Intents

ModifyAsync(Action<ThreadChannelEditModel>)

Modifies the current thread.

RemoveThreadMemberAsync(DiscordMember)

Removes the given DiscordMember from this thread. Requires an not archived thread and send message permissions.