From 9b17f30f9460f8522542ca3ecc896ec381b79d13 Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Wed, 19 Apr 2023 23:54:24 +0200 Subject: [PATCH] [3.4] Fix Tunnel.message_forwarder's handling of >2000 strings (#5844) (#6052) Co-authored-by: Jakub Kuczys --- redbot/core/utils/tunnel.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/redbot/core/utils/tunnel.py b/redbot/core/utils/tunnel.py index 880a5682e..92a5ad04c 100644 --- a/redbot/core/utils/tunnel.py +++ b/redbot/core/utils/tunnel.py @@ -124,10 +124,7 @@ class Tunnel(metaclass=TunnelMeta): if content: for page in pagify(content): rets.append(await destination.send(page, files=files, embed=embed)) - if files: - del files - if embed: - del embed + files = embed = None elif embed or files: rets.append(await destination.send(files=files, embed=embed)) return rets