Skip to content

Commit 5e3cf70

Browse files
authored
Merge branch 'master' into partial-autocomplete
2 parents 33c5f21 + 3298cd0 commit 5e3cf70

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
# - --remove-duplicate-keys
2222
# - --remove-unused-variables
2323
- repo: https://github.com/asottile/pyupgrade
24-
rev: v3.19.0
24+
rev: v3.19.1
2525
hooks:
2626
- id: pyupgrade
2727
exclude: \.(po|pot|yml|yaml)$

CHANGELOG.md

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

8486
### Deprecated
8587

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
-r _.txt
2-
pylint~=3.3.2
2+
pylint~=3.3.3
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)