Table of Contents

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

jsonModel JsonChannel
guildId ulong
client RestClient

Properties

Bitrate

The voice channel's bitrate (in bits per second).

public int Bitrate { get; }

Property Value

int

RtcRegion

The voice channel's preferred region, if set. When null, Discord automatically determines this.

public string? RtcRegion { get; }

Property Value

string

UserLimit

The voice channel's user limit.

public int UserLimit { get; }

Property Value

int

VideoQualityMode

The voice channel's video optimization mode (for cameras).

public VideoQualityMode VideoQualityMode { get; }

Property Value

VideoQualityMode

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

Deletes a channel.

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

GetAsync(RestRequestProperties?, CancellationToken)

Retrieves a channel by its ID.

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

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

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<VoiceGuildChannel>

SetStatusAsync(VoiceGuildChannelStatusProperties, RestRequestProperties?, CancellationToken)

Sets a guild voice channel's status.

public Task SetStatusAsync(VoiceGuildChannelStatusProperties statusProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

statusProperties VoiceGuildChannelStatusProperties

The status to apply to the channel.

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