@@ -8,6 +8,8 @@ namespace Discord | |||||
{ | { | ||||
/// <summary> Gets the bitrate, in bits per second, clients in this voice channel are requested to use. </summary> | /// <summary> Gets the bitrate, in bits per second, clients in this voice channel are requested to use. </summary> | ||||
int Bitrate { get; } | int Bitrate { get; } | ||||
/// <summary> Gets the max amount of users allowed to be connected to this channel at one time. A value of 0 represents no limit. </summary> | |||||
int UserLimit { get; } | |||||
/// <summary> Modifies this voice channel. </summary> | /// <summary> Modifies this voice channel. </summary> | ||||
Task Modify(Action<ModifyVoiceChannelParams> func); | Task Modify(Action<ModifyVoiceChannelParams> func); | ||||
@@ -13,6 +13,8 @@ namespace Discord.WebSocket | |||||
{ | { | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
public int Bitrate { get; private set; } | public int Bitrate { get; private set; } | ||||
/// <inheritdoc /> | |||||
public int UserLimit { get; private set; } | |||||
public override IEnumerable<GuildUser> Users | public override IEnumerable<GuildUser> Users | ||||
=> Guild.Users.Where(x => x.VoiceChannel == this); | => Guild.Users.Where(x => x.VoiceChannel == this); | ||||
@@ -25,6 +27,7 @@ namespace Discord.WebSocket | |||||
{ | { | ||||
base.Update(model); | base.Update(model); | ||||
Bitrate = model.Bitrate; | Bitrate = model.Bitrate; | ||||
UserLimit = model.UserLimit; | |||||
} | } | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||