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
jsonModelJsonChannelclientRestClient
Properties
AppliedTags
The set of tags applied to the thread.
public IReadOnlyList<ulong>? AppliedTags { get; }
Property Value
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
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<PublicGuildThread> 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<PublicGuildThread> 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.