2021-11-04 14:13:43 -04:00
|
|
|
using Myriad.Types;
|
|
|
|
|
2021-11-26 21:10:56 -05:00
|
|
|
namespace Myriad.Extensions;
|
|
|
|
|
|
|
|
public static class GuildExtensions
|
2020-12-22 16:55:13 +01:00
|
|
|
{
|
2021-11-26 21:10:56 -05:00
|
|
|
public static int FileSizeLimit(this Guild guild)
|
2020-12-22 16:55:13 +01:00
|
|
|
{
|
2021-11-26 21:10:56 -05:00
|
|
|
switch (guild.PremiumTier)
|
2021-11-04 14:13:43 -04:00
|
|
|
{
|
2021-11-26 21:10:56 -05:00
|
|
|
default:
|
|
|
|
case PremiumTier.NONE:
|
|
|
|
case PremiumTier.TIER_1:
|
|
|
|
return 8;
|
|
|
|
case PremiumTier.TIER_2:
|
|
|
|
return 50;
|
|
|
|
case PremiumTier.TIER_3:
|
|
|
|
return 100;
|
2021-11-04 14:13:43 -04:00
|
|
|
}
|
2020-12-22 16:55:13 +01:00
|
|
|
}
|
|
|
|
}
|