mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix Tunnel.message_forwarder's handling of >2000 strings (#5844)
This commit is contained in:
parent
cadcffbae5
commit
9d820234bb
@ -128,10 +128,7 @@ class Tunnel(metaclass=TunnelMeta):
|
|||||||
if content:
|
if content:
|
||||||
for page in pagify(content):
|
for page in pagify(content):
|
||||||
rets.append(await destination.send(page, files=files, embed=embed))
|
rets.append(await destination.send(page, files=files, embed=embed))
|
||||||
if files:
|
files = embed = None
|
||||||
del files
|
|
||||||
if embed:
|
|
||||||
del embed
|
|
||||||
elif embed or files:
|
elif embed or files:
|
||||||
rets.append(await destination.send(files=files, embed=embed))
|
rets.append(await destination.send(files=files, embed=embed))
|
||||||
return rets
|
return rets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user