Skip to content

Commit

Permalink
feat(utilities): add maximum nitro basic upload size (#660)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kyranet authored Nov 11, 2023
1 parent 9c92477 commit 3bc31a5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/discord-utilities/src/lib/limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3bc31a5

Please sign in to comment.