This commit is contained in:
Nexus 2023-11-05 15:23:29 +00:00 committed by GitHub
parent 7217965192
commit 2c0d04da13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -895,10 +895,8 @@ class OtherCog(commands.Cog):
await ctx.defer()
from urllib.parse import parse_qs
MAX_SIZE_MB = ctx.guild.filesize_limit / 1024 / 1024
if MAX_SIZE_MB == 8.0:
MAX_SIZE_MB = 20
REAL_MAX_SIZE_MB = MAX_SIZE_MB
MAX_SIZE_MB = 20
REAL_MAX_SIZE_MB = 25
if disable_filesize_buffer is False:
MAX_SIZE_MB *= 0.8
BYTES_REMAINING = (MAX_SIZE_MB - 0.256) * 1024 * 1024