Add RTCRegion to voice channels (#2002)
* Add RTCRegion to voice channels * Update MockedGroupChannel.cs
This commit is contained in:
@@ -21,6 +21,8 @@ namespace Discord.WebSocket
|
||||
public int Bitrate { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public int? UserLimit { get; private set; }
|
||||
/// <inheritdoc/>
|
||||
public string RTCRegion { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public ulong? CategoryId { get; private set; }
|
||||
@@ -66,6 +68,7 @@ namespace Discord.WebSocket
|
||||
CategoryId = model.CategoryId;
|
||||
Bitrate = model.Bitrate.Value;
|
||||
UserLimit = model.UserLimit.Value != 0 ? model.UserLimit.Value : (int?)null;
|
||||
RTCRegion = model.RTCRegion.GetValueOrDefault(null);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user