Skip to content

Commit

Permalink
Update max file size to 25 MiB (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 authored May 2, 2023
1 parent 6842066 commit 22fd697
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/net/dv8tion/jda/api/entities/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,20 @@ public interface Message extends ISnowflake, Formattable
String JUMP_URL = "https://discord.com/channels/%s/%s/%s";

/**
* The maximum sendable file size (8 MiB)
* The maximum sendable file size (25 MiB)
*
* @see MessageRequest#setFiles(Collection)
*/
int MAX_FILE_SIZE = 8 << 20;
int MAX_FILE_SIZE = 25 << 20;

/**
* The maximum sendable file size for nitro (50 MiB)
*
* @see MessageRequest#setFiles(Collection)
*
* @deprecated Self-bots are not supported anymore and the value is outdated.
*/
@Deprecated
int MAX_FILE_SIZE_NITRO = 50 << 20;

/**
Expand Down

0 comments on commit 22fd697

Please sign in to comment.