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