Table of Contents

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

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

DeleteStageInstanceAsync(RestRequestProperties?, CancellationToken)

public Task DeleteStageInstanceAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetAsync(RestRequestProperties?, CancellationToken)

Retrieves a channel by its ID.

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

GetStageInstanceAsync(RestRequestProperties?, CancellationToken)

public Task<StageInstance> GetStageInstanceAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<StageInstance>

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

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

ModifyStageInstanceAsync(Action<StageInstanceOptions>, RestRequestProperties?, CancellationToken)

public Task<StageInstance> ModifyStageInstanceAsync(Action<StageInstanceOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<StageInstanceOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<StageInstance>