Skip to content

Commit

Permalink
[Feature] 25MiB file upload size limit (#2663)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha-133 committed Apr 14, 2023
1 parent f171684 commit 98f974d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static ulong GetUploadLimit(IGuild guild)
{
PremiumTier.Tier2 => 50,
PremiumTier.Tier3 => 100,
_ => 8
_ => 25
};

var mebibyte = Math.Pow(2, 20);
Expand Down
4 changes: 2 additions & 2 deletions test/Discord.Net.Tests.Unit/GuildHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace Discord;
public class GuildHelperTests
{
[Theory]
[InlineData(PremiumTier.None, 8)]
[InlineData(PremiumTier.Tier1, 8)]
[InlineData(PremiumTier.None, 25)]
[InlineData(PremiumTier.Tier1, 25)]
[InlineData(PremiumTier.Tier2, 50)]
[InlineData(PremiumTier.Tier3, 100)]
public void GetUploadLimit(PremiumTier tier, ulong factor)
Expand Down

0 comments on commit 98f974d

Please sign in to comment.