Added UserLimit to IVoiceChannel
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user