Browse Source

Update SocketGuild.cs

pull/1690/head
vrachv GitHub 4 years ago
parent
commit
3a67fe12f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs

+ 20
- 0
src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs View File

@@ -178,6 +178,26 @@ namespace Discord.WebSocket
}
}
/// <summary>
/// Gets the max bitrate for voice channels in this guild.
/// </summary>
/// <returns>
/// Max bitrate value.
/// </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.
/// </summary>
/// <returns>


Loading…
Cancel
Save