Class VoiceGuildChannel
- Namespace
- NetCord
- Assembly
- NetCord.dll
Represents a standard voice channel within a guild.
public class VoiceGuildChannel : TextGuildChannel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IVoiceGuildChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
- Inheritance
-
VoiceGuildChannel
- Implements
- Inherited Members
Constructors
VoiceGuildChannel(JsonChannel, ulong, RestClient)
Represents a standard voice channel within a guild.
public VoiceGuildChannel(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<VoiceGuildChannel> 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<VoiceGuildChannel> 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<VoiceGuildChannel> 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
SetStatusAsync(VoiceGuildChannelStatusProperties, RestRequestProperties?, CancellationToken)
Sets a guild voice channel's status.
public Task SetStatusAsync(VoiceGuildChannelStatusProperties statusProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
statusPropertiesVoiceGuildChannelStatusPropertiesThe status to apply to the channel.
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.