feature: Add max bitrate value to SocketGuild
* Update SocketGuild.cs * Fix returns value docs Signed-off-by: Still Hsu <dev@stillu.cc> Co-authored-by: Still Hsu <dev@stillu.cc>
This commit is contained in:
@@ -178,6 +178,26 @@ namespace Discord.WebSocket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// Gets the max bitrate for voice channels in this guild.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>
|
||||||
|
/// A <see cref="int"/> representing the maximum bitrate value allowed by Discord in this guild.
|
||||||
|
/// </returns>
|
||||||
|
public int MaxBitrate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var maxBitrate = PremiumTier switch
|
||||||
|
{
|
||||||
|
PremiumTier.Tier1 => 128000,
|
||||||
|
PremiumTier.Tier2 => 256000,
|
||||||
|
PremiumTier.Tier3 => 384000,
|
||||||
|
_ => 96000,
|
||||||
|
};
|
||||||
|
return maxBitrate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
/// Gets the embed channel (i.e. the channel set in the guild's widget settings) in this guild.
|
/// Gets the embed channel (i.e. the channel set in the guild's widget settings) in this guild.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
|
|||||||
Reference in New Issue
Block a user