mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Reset seek position
This commit is contained in:
parent
4287017dbe
commit
ec81491637
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue