Made IVoiceChannel.UserLimit nullable

This commit is contained in:
RogueException
2017-01-24 11:37:39 -04:00
parent 69bd4b4ea6
commit ea0044cb87
6 changed files with 13 additions and 16 deletions

View File

@@ -8,8 +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> Gets the max amount of users allowed to be connected to this channel at one time. </summary>
int? UserLimit { get; }
/// <summary> Modifies this voice channel. </summary>
Task ModifyAsync(Action<VoiceChannelProperties> func, RequestOptions options = null);

View File

@@ -10,6 +10,6 @@
/// <summary>
/// The maximum number of users that can be present in a channel.
/// </summary>
public Optional<int> UserLimit { get; set; }
public Optional<int?> UserLimit { get; set; }
}
}