mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Bump deps (including d.py 2.5 bump) (#6529)
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
This commit is contained in:
@@ -206,6 +206,8 @@ from discord.ext.commands import (
|
||||
RangeError as RangeError,
|
||||
parameter as parameter,
|
||||
HybridCommandError as HybridCommandError,
|
||||
SoundboardSoundConverter as SoundboardSoundConverter,
|
||||
SoundboardSoundNotFound as SoundboardSoundNotFound,
|
||||
)
|
||||
|
||||
__all__ = (
|
||||
@@ -397,4 +399,6 @@ __all__ = (
|
||||
"RangeError",
|
||||
"parameter",
|
||||
"HybridCommandError",
|
||||
"SoundboardSoundConverter",
|
||||
"SoundboardSoundNotFound",
|
||||
)
|
||||
|
||||
@@ -162,7 +162,8 @@ class Tunnel(metaclass=TunnelMeta):
|
||||
|
||||
"""
|
||||
files = []
|
||||
max_size = 26214400
|
||||
# DEP-WARN
|
||||
max_size = discord.utils.DEFAULT_FILE_SIZE_LIMIT_BYTES
|
||||
if m.attachments and sum(a.size for a in m.attachments) <= max_size:
|
||||
for a in m.attachments:
|
||||
if images_only and a.height is None:
|
||||
|
||||
Reference in New Issue
Block a user