From ec814916372d5a057c42828412ef20f1a7aad1db Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 25 May 2023 09:53:24 +0100 Subject: [PATCH] Reset seek position --- cogs/other.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/other.py b/cogs/other.py index 68eba61..ab2c8cc 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1506,6 +1506,7 @@ class OtherCog(commands.Cog): return await ctx.respond("Image is too large.") return await ctx.respond(f"Failed to upload: `{e}`") try: + f2.seek(0) await ctx.user.send(file=discord.File(f2, filename="image.gif")) except discord.Forbidden: return await ctx.respond("Unable to mirror to your DM - am I blocked?", ephemeral=True)