Skip to content

Commit

Permalink
fix(guild): decrease default filesize limit back to 10MB (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv authored Jan 28, 2025
1 parent d0abe30 commit ce88413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog/1272.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Decrease the default :attr:`Guild.filesize_limit` from 25MB to 10MB.
6 changes: 3 additions & 3 deletions disnake/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ class Guild(Hashable):
)

_PREMIUM_GUILD_LIMITS: ClassVar[Dict[Optional[int], _GuildLimit]] = {
None: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=26214400, sounds=8),
0: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=26214400, sounds=8),
1: _GuildLimit(emoji=100, stickers=15, bitrate=128e3, filesize=26214400, sounds=24),
None: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=10485760, sounds=8),
0: _GuildLimit(emoji=50, stickers=5, bitrate=96e3, filesize=10485760, sounds=8),
1: _GuildLimit(emoji=100, stickers=15, bitrate=128e3, filesize=10485760, sounds=24),
2: _GuildLimit(emoji=150, stickers=30, bitrate=256e3, filesize=52428800, sounds=36),
3: _GuildLimit(emoji=250, stickers=60, bitrate=384e3, filesize=104857600, sounds=48),
}
Expand Down

0 comments on commit ce88413

Please sign in to comment.