Skip to content

Commit eb4fd12

Browse files
JustaSqu1dplun1331
andauthored
chore: update file upload size limit (#2014)
* chore: update file upload size limit * docs: add changelog entry * docs: fix formatting in earlier changelog entry * docs: add pull request number --------- Co-authored-by: plun1331 <[email protected]>
1 parent 2ac951f commit eb4fd12

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ These changes are available on the `master` branch, but have not yet been releas
2222
- Added support for one-time event listeners in `@client.listen()`.
2323
([#1957](https://github.com/Pycord-Development/pycord/pull/1957))
2424
- Added `current_page` argument to Paginator.update().
25-
([#1983](https://github.com/Pycord-Development/pycord/pull/1983)
25+
([#1983](https://github.com/Pycord-Development/pycord/pull/1983))
2626
- Added new `application_auto_moderation_rule_create_badge` to `ApplicationFlags`.
2727
([#1992](https://github.com/Pycord-Development/pycord/pull/1992))
2828

29+
### Changed
30+
31+
- Changed file-upload size limit from 8 MB to 25 MB accordingly.
32+
([#2014](https://github.com/Pycord-Development/pycord/pull/2014))
33+
2934
### Removed
3035

3136
- Removed `@client.once()` in favour of `@client.listen(once=True)`.

discord/guild.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ class Guild(Hashable):
324324
)
325325

326326
_PREMIUM_GUILD_LIMITS: ClassVar[dict[int | None, _GuildLimit]] = {
327-
None: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=8388608),
328-
0: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=8388608),
329-
1: _GuildLimit(emoji=100, stickers=15, bitrate=128e3, filesize=8388608),
327+
None: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=26214400),
328+
0: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=26214400),
329+
1: _GuildLimit(emoji=100, stickers=15, bitrate=128e3, filesize=26214400),
330330
2: _GuildLimit(emoji=150, stickers=30, bitrate=256e3, filesize=52428800),
331331
3: _GuildLimit(emoji=250, stickers=60, bitrate=384e3, filesize=104857600),
332332
}

0 commit comments

Comments
 (0)