Table of Contents

Class PublicGuildThread

Namespace
NetCord
Assembly
NetCord.dll

Represents a GuildThread accessible to all users.

public class PublicGuildThread : GuildThread, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
Inheritance
PublicGuildThread
Implements
Derived
Inherited Members

Constructors

PublicGuildThread(JsonChannel, RestClient)

Represents a GuildThread accessible to all users.

public PublicGuildThread(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
client RestClient

Properties

AppliedTags

The set of tags applied to the thread.

public IReadOnlyList<ulong>? AppliedTags { get; }

Property Value

IReadOnlyList<ulong>

Remarks

Only available if the thread is within a ForumGuildChannel or MediaForumGuildChannel.

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

Deletes a channel.

public Task<PublicGuildThread> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties

Optional properties to customize the request, can be null.

cancellationToken CancellationToken

A token that can be used to cancel the operation before it completes.

Returns

Task<PublicGuildThread>

GetAsync(RestRequestProperties?, CancellationToken)

Retrieves a channel by its ID.

public Task<PublicGuildThread> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties

Optional properties to customize the request, can be null.

cancellationToken CancellationToken

A token that can be used to cancel the operation before it completes.

Returns

Task<PublicGuildThread>

ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)

Modifies a guild channel's properties.

public Task<PublicGuildThread> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<GuildChannelOptions>

An action delegate used to configure the updated channel options.

properties RestRequestProperties

Optional properties to customize the request, can be null.

cancellationToken CancellationToken

A token that can be used to cancel the operation before it completes.

Returns

Task<PublicGuildThread>