[Feature] Add MaxStageVideoChannelUsers property to IGuild (#2648)
This commit is contained in:
@@ -302,6 +302,13 @@ namespace Discord
|
||||
/// </returns>
|
||||
int? MaxVideoChannelUsers { get; }
|
||||
/// <summary>
|
||||
/// Gets the maximum amount of users in a stage video channel.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// The maximum amount of users in a stage video channel.
|
||||
/// </returns>
|
||||
int? MaxStageVideoChannelUsers { get; }
|
||||
/// <summary>
|
||||
/// Gets the approximate number of members in this guild.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
|
||||
@@ -88,5 +88,8 @@ namespace Discord.API
|
||||
|
||||
[JsonProperty("welcome_screen")]
|
||||
public Optional<WelcomeScreen> WelcomeScreen { get; set; }
|
||||
|
||||
[JsonProperty("max_stage_video_channel_users")]
|
||||
public Optional<int> MaxStageVideoChannelUsers { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,8 @@ namespace Discord.Rest
|
||||
/// <inheritdoc />
|
||||
public int? MaxVideoChannelUsers { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public int? MaxStageVideoChannelUsers { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public int? ApproximateMemberCount { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public int? ApproximatePresenceCount { get; private set; }
|
||||
@@ -185,6 +187,8 @@ namespace Discord.Rest
|
||||
MaxMembers = model.MaxMembers.Value;
|
||||
if (model.MaxVideoChannelUsers.IsSpecified)
|
||||
MaxVideoChannelUsers = model.MaxVideoChannelUsers.Value;
|
||||
if (model.MaxStageVideoChannelUsers.IsSpecified)
|
||||
MaxStageVideoChannelUsers = model.MaxStageVideoChannelUsers.Value;
|
||||
PreferredLocale = model.PreferredLocale;
|
||||
PreferredCulture = new CultureInfo(PreferredLocale);
|
||||
if (model.ApproximateMemberCount.IsSpecified)
|
||||
|
||||
@@ -130,6 +130,8 @@ namespace Discord.WebSocket
|
||||
/// <inheritdoc />
|
||||
public int? MaxVideoChannelUsers { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public int? MaxStageVideoChannelUsers { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public NsfwLevel NsfwLevel { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public CultureInfo PreferredCulture { get; private set; }
|
||||
@@ -547,6 +549,8 @@ namespace Discord.WebSocket
|
||||
MaxMembers = model.MaxMembers.Value;
|
||||
if (model.MaxVideoChannelUsers.IsSpecified)
|
||||
MaxVideoChannelUsers = model.MaxVideoChannelUsers.Value;
|
||||
if (model.MaxStageVideoChannelUsers.IsSpecified)
|
||||
MaxStageVideoChannelUsers = model.MaxStageVideoChannelUsers.Value;
|
||||
PreferredLocale = model.PreferredLocale;
|
||||
PreferredCulture = PreferredLocale == null ? null : new CultureInfo(PreferredLocale);
|
||||
if (model.IsBoostProgressBarEnabled.IsSpecified)
|
||||
|
||||
Reference in New Issue
Block a user