Skip to content

Commit 7f5a23f

Browse files
Paillat-devLulalaby
authored andcommitted
chore: 👽 Update base max filesize to 10 MB (#2671)
1 parent 7bdc3f4 commit 7f5a23f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ These changes are available on the `master` branch, but have not yet been releas
7777
- Replaced audioop (deprecated module) implementation of `PCMVolumeTransformer.read`
7878
method with a pure Python equivalent.
7979
([#2176](https://github.com/Pycord-Development/pycord/pull/2176))
80+
- Updated `Guild.filesize_limit` to 10 MB instead of 25 MB following Discord's API
81+
changes. ([#2671](https://github.com/Pycord-Development/pycord/pull/2671))
8082

8183
### Deprecated
8284

discord/guild.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,11 @@ class Guild(Hashable):
289289
)
290290

291291
_PREMIUM_GUILD_LIMITS: ClassVar[dict[int | None, _GuildLimit]] = {
292-
None: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=26214400),
293-
0: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=26214400),
294-
1: _GuildLimit(emoji=100, stickers=15, bitrate=128e3, filesize=26214400),
295-
2: _GuildLimit(emoji=150, stickers=30, bitrate=256e3, filesize=52428800),
296-
3: _GuildLimit(emoji=250, stickers=60, bitrate=384e3, filesize=104857600),
292+
None: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=10_485_760),
293+
0: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=10_485_760),
294+
1: _GuildLimit(emoji=100, stickers=15, bitrate=128e3, filesize=10_485_760),
295+
2: _GuildLimit(emoji=150, stickers=30, bitrate=256e3, filesize=52_428_800),
296+
3: _GuildLimit(emoji=250, stickers=60, bitrate=384e3, filesize=104_857_600),
297297
}
298298

299299
def __init__(self, *, data: GuildPayload, state: ConnectionState):

0 commit comments

Comments
 (0)