Search Results for

    Show / Hide Table of Contents

    Class VoiceChannelProperties

    Provides properties that are used to modify an IVoiceChannel with the specified changes.

    Inheritance
    Object
    GuildChannelProperties
    VoiceChannelProperties
    Inherited Members
    GuildChannelProperties.Name
    GuildChannelProperties.Position
    GuildChannelProperties.CategoryId
    GuildChannelProperties.PermissionOverwrites
    GuildChannelProperties.Flags
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public class VoiceChannelProperties : GuildChannelProperties
    Examples

    The following example uses ModifyAsync to apply changes specified in the properties,

    var channel = _client.GetChannel(id) as IVoiceChannel;
    if (channel == null) return;
    
    await channel.ModifyAsync(x =>
    {
        x.UserLimit = 5;
    });
    

    Properties

    | Improve this Doc View Source

    Bitrate

    Gets or sets the bitrate of the voice connections in this channel. Must be greater than 8000.

    Declaration
    public Optional<int> Bitrate { get; set; }
    Property Value
    Type Description
    Optional<Int32>
    | Improve this Doc View Source

    RTCRegion

    Gets or sets the channel voice region id, automatic when set to null.

    Declaration
    public Optional<string> RTCRegion { get; set; }
    Property Value
    Type Description
    Optional<String>
    | Improve this Doc View Source

    UserLimit

    Gets or sets the maximum number of users that can be present in a channel, or null if none.

    Declaration
    public Optional<int?> UserLimit { get; set; }
    Property Value
    Type Description
    Optional<Nullable<Int32>>

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.9.0