Class DiscordThreadChannel
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents a discord thread channel.
public class DiscordThreadChannel : DiscordChannel, IEquatable<DiscordChannel>
- Inheritance
-
DiscordThreadChannel
- Implements
- Inherited Members
- Extension Methods
Properties
- AppliedTags
Gets the list of applied tags. Only applicable for forum channel posts.
- CurrentMember
Represents the current member for this thread. This will have a value if the user has joined the thread.
- MemberCount
Gets an approximate count of users in a thread, stops counting at 50.
- MessageCount
Gets an approximate count of messages in a thread, stops counting at 50.
- NewlyCreated
Gets whether this thread is newly created.
Why? We don't know.
- OwnerId
Gets ID of the owner that started this thread.
- ThreadMembers
Gets the thread members object.
- ThreadMetadata
Gets the threads metadata.
Methods
- AddMemberAsync(DiscordMember, CancellationToken)
Adds a member to this thread.
- AddMemberAsync(ulong, CancellationToken)
Adds a member to this thread.
- AddRoleAsync(DiscordRole, CancellationToken)
Adds a role to this thread. Only applicable to private threads.
- AddRoleAsync(ulong, CancellationToken)
Adds a role to this thread. Only applicable to private threads.
- AddTagAsync(ForumPostTag, string, CancellationToken)
Add a tag to the current thread.
- ArchiveAsync(string, CancellationToken)
Archives a thread.
- GetMemberAsync(DiscordMember, bool, CancellationToken)
Gets a member in this thread.
- GetMemberAsync(ulong, bool, CancellationToken)
Gets a member in this thread.
- GetMembersAsync(bool, ulong?, int?, CancellationToken)
Gets the members of a thread. Needs the GuildMembers intent.
- JoinAsync(CancellationToken)
Joins a thread.
- LeaveAsync(CancellationToken)
Leaves a thread.
- LockAsync(string, CancellationToken)
Locks a thread.
- ModifyAsync(Action<ThreadEditModel>, CancellationToken)
Modifies the current thread.
- RemoveMemberAsync(DiscordMember, CancellationToken)
Removes a member from this thread. Only applicable to private threads.
- RemoveMemberAsync(ulong, CancellationToken)
Removes a member from this thread.
- RemoveRoleAsync(DiscordRole, CancellationToken)
Removes a role from this thread. Only applicable to private threads.
- RemoveRoleAsync(ulong, CancellationToken)
Removes a role from this thread. Only applicable to private threads.
- RemoveTagAsync(ForumPostTag, string, CancellationToken)
Remove a tag from the current thread.
- ToString()
Returns a string representation of this thread.
- TryGetMemberAsync(DiscordMember, bool, CancellationToken)
Tries to get a member in this thread.
- TryGetMemberAsync(ulong, bool, CancellationToken)
Tries to get a member in this thread.
- UnarchiveAsync(string, CancellationToken)
Unarchives a thread.
- UnlockAsync(string, CancellationToken)
Unlocks a thread.