Added UserLimit to IVoiceChannel

This commit is contained in:
RogueException
2016-05-19 10:09:23 -03:00
parent c6c18bcf47
commit af680b7f43
2 changed files with 5 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ namespace Discord
{
/// <summary> Gets the bitrate, in bits per second, clients in this voice channel are requested to use. </summary>
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>
Task Modify(Action<ModifyVoiceChannelParams> func);

View File

@@ -13,6 +13,8 @@ namespace Discord.WebSocket
{
/// <inheritdoc />
public int Bitrate { get; private set; }
/// <inheritdoc />
public int UserLimit { get; private set; }
public override IEnumerable<GuildUser> Users
=> Guild.Users.Where(x => x.VoiceChannel == this);
@@ -25,6 +27,7 @@ namespace Discord.WebSocket
{
base.Update(model);
Bitrate = model.Bitrate;
UserLimit = model.UserLimit;
}
/// <inheritdoc />