Add MaxBitrate to the interface (#1861)

Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
This commit is contained in:
Paulo
2021-11-24 09:43:57 -03:00
committed by GitHub
parent 3cb662ff7a
commit e0dbe7c695
3 changed files with 23 additions and 8 deletions

View File

@@ -85,6 +85,20 @@ namespace Discord.Rest
public int? ApproximateMemberCount { get; private set; }
/// <inheritdoc />
public int? ApproximatePresenceCount { get; private set; }
/// <inheritdoc/>
public int MaxBitrate
{
get
{
return PremiumTier switch
{
PremiumTier.Tier1 => 128000,
PremiumTier.Tier2 => 256000,
PremiumTier.Tier3 => 384000,
_ => 96000,
};
}
}
/// <inheritdoc />
public NsfwLevel NsfwLevel { get; private set; }
/// <inheritdoc />