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
jsonModelJsonChannelclientRestClient
Methods
DeleteAsync(RestRequestProperties?, CancellationToken)
Deletes a channel.
public Task<PrivateGuildThread> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.
Returns
GetAsync(RestRequestProperties?, CancellationToken)
Retrieves a channel by its ID.
public Task<PrivateGuildThread> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.
Returns
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
actionAction<GuildChannelOptions>An action delegate used to configure the updated channel options.
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.