Made IVoiceChannel.UserLimit nullable
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user