[Feature] Add MaxStageVideoChannelUsers property to IGuild (#2648)

This commit is contained in:
Misha133
2023-03-31 14:14:24 +03:00
committed by GitHub
parent 2112e1f5b6
commit bdd755b8cf
4 changed files with 18 additions and 0 deletions

View File

@@ -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)