Table of Contents

Class ForumGuildThread

Namespace
NetCord
Assembly
NetCord.dll
public class ForumGuildThread : PublicGuildThread, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable, ICloneable
Inheritance
ForumGuildThread
Implements
Inherited Members

Remarks

Threads within a forum are typically acquired as PublicGuildThread objects.

Constructors

ForumGuildThread(JsonChannel, RestClient)

public ForumGuildThread(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
client RestClient

Remarks

Threads within a forum are typically acquired as PublicGuildThread objects.

Properties

Message

The message embedded as the thread's starting point.

public RestMessage Message { get; }

Property Value

RestMessage

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

Deletes a channel.

public Task<ForumGuildThread> 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<ForumGuildThread>

GetAsync(RestRequestProperties?, CancellationToken)

Retrieves a channel by its ID.

public Task<ForumGuildThread> 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<ForumGuildThread>

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

Modifies a guild channel's properties.

public Task<ForumGuildThread> 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<ForumGuildThread>