Skip to content

Commit cf04e3e

Browse files
authored
Merge branch 'Pycord-Development:master' into feat/interaction-integrations-methods
2 parents ff2f1b7 + 269f538 commit cf04e3e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ These changes are available on the `master` branch, but have not yet been releas
7979
- Replaced audioop (deprecated module) implementation of `PCMVolumeTransformer.read`
8080
method with a pure Python equivalent.
8181
([#2176](https://github.com/Pycord-Development/pycord/pull/2176))
82+
- Updated `Guild.filesize_limit` to 10 Mb instead of 25 Mb following Discord's API
83+
changes. ([#2671](https://github.com/Pycord-Development/pycord/pull/2671))
8284

8385
### Deprecated
8486

discord/guild.py

Lines changed: 5 additions & 5 deletions
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):

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pylint~=3.3.2
33
pytest~=8.3.4
44
pytest-asyncio~=0.23.8
55
# pytest-order~=1.0.1
6-
mypy~=1.13.0
6+
mypy~=1.14.0
77
coverage~=7.6
88
pre-commit==4.0.1
99
codespell==2.3.0

0 commit comments

Comments
 (0)