Interface IVoiceGuildChannel
- Namespace
- NetCord
- Assembly
- NetCord.dll
Represents a generic voice channel within a guild.
public interface IVoiceGuildChannel : IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
- Inherited Members
Properties
Bitrate
The voice channel's bitrate (in bits per second).
int Bitrate { get; }
Property Value
Nsfw
Whether the channel is age-restricted.
bool Nsfw { get; }
Property Value
ParentId
The ID of the channel's parent channel.
ulong? ParentId { get; }
Property Value
Remarks
If the channel is a thread, the ID corresponds to the thread's parent channel.
RtcRegion
The voice channel's preferred region, if set. When null, Discord automatically determines this.
string? RtcRegion { get; }
Property Value
Slowmode
The number of seconds a user has to wait before sending another message, between 0 and 21600 (6 hours).
int Slowmode { get; }
Property Value
Remarks
Bots, and users with the BypassSlowmode permission are unaffected.
UserLimit
The voice channel's user limit.
int UserLimit { get; }
Property Value
VideoQualityMode
The voice channel's video optimization mode (for cameras).
VideoQualityMode VideoQualityMode { get; }
Property Value
Methods
ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)
Modifies a guild channel's properties.
Task<IVoiceGuildChannel> 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.