Search Results for

    Show / Hide Table of Contents

    Interface IThreadChannel

    Represents a thread channel inside of a guild.

    Inherited Members
    ITextChannel.IsNsfw
    ITextChannel.Topic
    ITextChannel.SlowModeInterval
    ITextChannel.DefaultArchiveDuration
    ITextChannel.DeleteMessagesAsync(IEnumerable<IMessage>, RequestOptions)
    ITextChannel.DeleteMessagesAsync(IEnumerable<UInt64>, RequestOptions)
    ITextChannel.ModifyAsync(Action<TextChannelProperties>, RequestOptions)
    ITextChannel.CreateWebhookAsync(String, Stream, RequestOptions)
    ITextChannel.GetWebhookAsync(UInt64, RequestOptions)
    ITextChannel.GetWebhooksAsync(RequestOptions)
    ITextChannel.CreateThreadAsync(String, ThreadType, ThreadArchiveDuration, IMessage, Nullable<Boolean>, Nullable<Int32>, RequestOptions)
    ITextChannel.GetActiveThreadsAsync(RequestOptions)
    IMessageChannel.SendMessageAsync(String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    IMessageChannel.SendFileAsync(String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    IMessageChannel.SendFileAsync(Stream, String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    IMessageChannel.SendFileAsync(FileAttachment, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    IMessageChannel.SendFilesAsync(IEnumerable<FileAttachment>, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    IMessageChannel.GetMessageAsync(UInt64, CacheMode, RequestOptions)
    IMessageChannel.GetMessagesAsync(Int32, CacheMode, RequestOptions)
    IMessageChannel.GetMessagesAsync(UInt64, Direction, Int32, CacheMode, RequestOptions)
    IMessageChannel.GetMessagesAsync(IMessage, Direction, Int32, CacheMode, RequestOptions)
    IMessageChannel.GetPinnedMessagesAsync(RequestOptions)
    IMessageChannel.DeleteMessageAsync(UInt64, RequestOptions)
    IMessageChannel.DeleteMessageAsync(IMessage, RequestOptions)
    IMessageChannel.ModifyMessageAsync(UInt64, Action<MessageProperties>, RequestOptions)
    IMessageChannel.TriggerTypingAsync(RequestOptions)
    IMessageChannel.EnterTypingState(RequestOptions)
    IMentionable.Mention
    INestedChannel.CategoryId
    INestedChannel.GetCategoryAsync(CacheMode, RequestOptions)
    INestedChannel.SyncPermissionsAsync(RequestOptions)
    INestedChannel.CreateInviteAsync(Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    INestedChannel.CreateInviteToApplicationAsync(UInt64, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    INestedChannel.CreateInviteToApplicationAsync(DefaultApplications, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    INestedChannel.CreateInviteToStreamAsync(IUser, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    INestedChannel.GetInvitesAsync(RequestOptions)
    IGuildChannel.Position
    IGuildChannel.Flags
    IGuildChannel.Guild
    IGuildChannel.GuildId
    IGuildChannel.PermissionOverwrites
    IGuildChannel.ModifyAsync(Action<GuildChannelProperties>, RequestOptions)
    IGuildChannel.GetPermissionOverwrite(IRole)
    IGuildChannel.GetPermissionOverwrite(IUser)
    IGuildChannel.RemovePermissionOverwriteAsync(IRole, RequestOptions)
    IGuildChannel.RemovePermissionOverwriteAsync(IUser, RequestOptions)
    IGuildChannel.AddPermissionOverwriteAsync(IRole, OverwritePermissions, RequestOptions)
    IGuildChannel.AddPermissionOverwriteAsync(IUser, OverwritePermissions, RequestOptions)
    IGuildChannel.GetUsersAsync(CacheMode, RequestOptions)
    IGuildChannel.GetUserAsync(UInt64, CacheMode, RequestOptions)
    IChannel.Name
    IEntity<UInt64>.Id
    IDeletable.DeleteAsync(RequestOptions)
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public interface IThreadChannel : ITextChannel, IMessageChannel, IMentionable, INestedChannel, IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable

    Properties

    | Improve this Doc View Source

    AppliedTags

    Gets ids of tags applied to a forum thread

    Declaration
    IReadOnlyCollection<ulong> AppliedTags { get; }
    Property Value
    Type Description
    IReadOnlyCollection<UInt64>
    Remarks

    This property is only available on forum threads.

    | Improve this Doc View Source

    ArchiveTimestamp

    Gets the timestamp when the thread's archive status was last changed, used for calculating recent activity.

    Declaration
    DateTimeOffset ArchiveTimestamp { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    AutoArchiveDuration

    Gets the duration of time before the thread is automatically archived after no activity.

    Declaration
    ThreadArchiveDuration AutoArchiveDuration { get; }
    Property Value
    Type Description
    ThreadArchiveDuration
    | Improve this Doc View Source

    CreatedAt

    Gets when the thread was created.

    Declaration
    DateTimeOffset CreatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset
    Remarks

    This property is only populated for threads created after 2022-01-09, hence the default date of this property will be that date.

    | Improve this Doc View Source

    HasJoined

    Gets whether or not the current user has joined this thread.

    Declaration
    bool HasJoined { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsArchived

    Gets whether or not the current thread is archived.

    Declaration
    bool IsArchived { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsInvitable

    Gets whether non-moderators can add other non-moderators to a thread.

    Declaration
    bool? IsInvitable { get; }
    Property Value
    Type Description
    Nullable<Boolean>
    Remarks

    This property is only available on private threads.

    | Improve this Doc View Source

    IsLocked

    Gets whether or not the current thread is locked.

    Declaration
    bool IsLocked { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    MemberCount

    Gets an approximate count of users in a thread, stops counting after 50.

    Declaration
    int MemberCount { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    MessageCount

    Gets an approximate count of messages in a thread, stops counting after 50.

    Declaration
    int MessageCount { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    OwnerId

    Gets the id of the creator of the thread.

    Declaration
    ulong OwnerId { get; }
    Property Value
    Type Description
    UInt64
    | Improve this Doc View Source

    Type

    Gets the type of the current thread channel.

    Declaration
    ThreadType Type { get; }
    Property Value
    Type Description
    ThreadType

    Methods

    | Improve this Doc View Source

    AddUserAsync(IGuildUser, RequestOptions)

    Adds a user to this thread.

    Declaration
    Task AddUserAsync(IGuildUser user, RequestOptions options = null)
    Parameters
    Type Name Description
    IGuildUser user

    The IGuildUser to add.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation of adding a member to a thread.

    | Improve this Doc View Source

    JoinAsync(RequestOptions)

    Joins the current thread.

    Declaration
    Task JoinAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous join operation.

    | Improve this Doc View Source

    LeaveAsync(RequestOptions)

    Leaves the current thread.

    Declaration
    Task LeaveAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous leave operation.

    | Improve this Doc View Source

    ModifyAsync(Action<ThreadChannelProperties>, RequestOptions)

    Modifies this thread channel.

    Declaration
    Task ModifyAsync(Action<ThreadChannelProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<ThreadChannelProperties> func

    The delegate containing the properties to modify the channel with.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous modification operation.

    See Also
    ThreadChannelProperties
    | Improve this Doc View Source

    RemoveUserAsync(IGuildUser, RequestOptions)

    Removes a user from this thread.

    Declaration
    Task RemoveUserAsync(IGuildUser user, RequestOptions options = null)
    Parameters
    Type Name Description
    IGuildUser user

    The IGuildUser to remove from this thread.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation of removing a user from this thread.

    Extension Methods

    ChannelExtensions.GetChannelType(IChannel)

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.9.0