Table of Contents

Class PrivateGuildThread

Namespace
NetCord
Assembly
NetCord.dll

Represents a GuildThread only accessible to a subset of users.

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

Constructors

PrivateGuildThread(JsonChannel, RestClient)

Represents a GuildThread only accessible to a subset of users.

public PrivateGuildThread(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
client RestClient

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

Deletes a channel.

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

GetAsync(RestRequestProperties?, CancellationToken)

Retrieves a channel by its ID.

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

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

Modifies a guild channel's properties.

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