2021-11-04 18:13:43 +00:00
|
|
|
using Myriad.Types;
|
|
|
|
|
2021-08-27 15:03:47 +00:00
|
|
|
namespace Myriad.Extensions
|
2020-12-22 15:55:13 +00:00
|
|
|
{
|
|
|
|
public static class GuildExtensions
|
|
|
|
{
|
2021-11-04 18:13:43 +00:00
|
|
|
public static int FileSizeLimit(this Guild guild)
|
|
|
|
{
|
|
|
|
switch (guild.PremiumTier)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
case PremiumTier.NONE:
|
|
|
|
case PremiumTier.TIER_1:
|
|
|
|
return 8;
|
|
|
|
case PremiumTier.TIER_2:
|
|
|
|
return 50;
|
|
|
|
case PremiumTier.TIER_3:
|
|
|
|
return 100;
|
|
|
|
}
|
|
|
|
}
|
2020-12-22 15:55:13 +00:00
|
|
|
}
|
|
|
|
}
|