Add MaxUploadLimit to guilds (#2001)

This commit is contained in:
Quin Lynch
2021-12-24 15:58:01 -04:00
committed by GitHub
parent 2a416a355c
commit 7745558bdc
5 changed files with 30 additions and 0 deletions

View File

@@ -124,6 +124,15 @@ namespace Discord.Rest
{
await client.ApiClient.DeleteGuildAsync(guild.Id, options).ConfigureAwait(false);
}
public static ulong GetUploadLimit(IGuild guild)
{
return guild.PremiumTier switch
{
PremiumTier.Tier2 => 50ul * 1000000,
PremiumTier.Tier3 => 100ul * 1000000,
_ => 8ul * 1000000
};
}
#endregion
#region Bans