From 3bc31a5507869726771ba5bad42453a9cb041412 Mon Sep 17 00:00:00 2001 From: Aura Date: Sat, 11 Nov 2023 15:23:59 +0100 Subject: [PATCH] feat(utilities): add maximum nitro basic upload size (#660) fix: increase `MaximumUploadSize` from 8MB to 25MB fix: adjusted `MaximumNitroUploadSize` from 5GB to 500MB fix: adjusted `MaximumUploadSizeInGuild`'s first two values from 8MB to 25MB --- packages/discord-utilities/src/lib/limits.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/discord-utilities/src/lib/limits.ts b/packages/discord-utilities/src/lib/limits.ts index aa40cb70cc..d894310116 100644 --- a/packages/discord-utilities/src/lib/limits.ts +++ b/packages/discord-utilities/src/lib/limits.ts @@ -381,21 +381,27 @@ export const MessageLimits = { /** * Maximum upload size for a free user in a guild of tier 1 or below, or in DMs. - * Size is in bytes, and corresponds to 8MB. + * Size is in bytes, and corresponds to 25MB. + */ + MaximumUploadSize: 25_000_000, + + /** + * Maximum upload size for a Nitro Basic user, in any guild or in DMs. + * Size is in bytes, and corresponds to 50MB. */ - MaximumUploadSize: 8_000_000, + MaximumNitroBasicUploadSize: 50_000_000, /** - * Maximum upload size for a nitro user, in any guild or in DMs. + * Maximum upload size for a Nitro user, in any guild or in DMs. * Size is in bytes, and corresponds to 500MB. */ - MaximumNitroUploadSize: 5_000_000_000, + MaximumNitroUploadSize: 500_000_000, /** * Maximum upload size for a free user for all different boost levels available in a guild. - * Sizes are in bytes, and correspond to 8MB, 8MB, 50MB, and 100MB. + * Sizes are in bytes, and correspond to 25MB, 25MB, 50MB, and 100MB. */ - MaximumUploadSizeInGuild: [8_000_000, 8_000_000, 50_000_000, 100_000_000], + MaximumUploadSizeInGuild: [25_000_000, 25_000_000, 50_000_000, 100_000_000], /** * Minimum number of messages to return from the channel messages API.