Class StageGuildChannel
- Namespace
- NetCord
- Assembly
- NetCord.dll
Represents a stage channel within a guild.
public class StageGuildChannel : TextGuildChannel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IVoiceGuildChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
- Inheritance
-
StageGuildChannel
- Implements
- Inherited Members
Constructors
StageGuildChannel(JsonChannel, ulong, RestClient)
Represents a stage channel within a guild.
public StageGuildChannel(JsonChannel jsonModel, ulong guildId, RestClient client)
Parameters
jsonModelJsonChannelguildIdulongclientRestClient
Properties
Bitrate
The voice channel's bitrate (in bits per second).
public int Bitrate { get; }
Property Value
RtcRegion
The voice channel's preferred region, if set. When null, Discord automatically determines this.
public string? RtcRegion { get; }
Property Value
UserLimit
The voice channel's user limit.
public int UserLimit { get; }
Property Value
VideoQualityMode
The voice channel's video optimization mode (for cameras).
public VideoQualityMode VideoQualityMode { get; }
Property Value
Methods
DeleteAsync(RestRequestProperties?, CancellationToken)
Deletes a channel.
public Task<StageGuildChannel> 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
DeleteStageInstanceAsync(RestRequestProperties?, CancellationToken)
public Task DeleteStageInstanceAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
propertiesRestRequestPropertiescancellationTokenCancellationToken
Returns
GetAsync(RestRequestProperties?, CancellationToken)
Retrieves a channel by its ID.
public Task<StageGuildChannel> 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
GetStageInstanceAsync(RestRequestProperties?, CancellationToken)
public Task<StageInstance> GetStageInstanceAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
propertiesRestRequestPropertiescancellationTokenCancellationToken
Returns
ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)
Modifies a guild channel's properties.
public Task<StageGuildChannel> 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.
Returns
ModifyStageInstanceAsync(Action<StageInstanceOptions>, RestRequestProperties?, CancellationToken)
public Task<StageInstance> ModifyStageInstanceAsync(Action<StageInstanceOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
actionAction<StageInstanceOptions>propertiesRestRequestPropertiescancellationTokenCancellationToken