Save the right message
This commit is contained in:
parent
c1d120d7b9
commit
3714832752
1 changed files with 2 additions and 2 deletions
|
@ -417,7 +417,7 @@ class YTDLCog(commands.Cog):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
await ctx.edit(
|
msg = await ctx.edit(
|
||||||
file=upload_file,
|
file=upload_file,
|
||||||
embed=discord.Embed(
|
embed=discord.Embed(
|
||||||
title=f"Downloaded {title}!",
|
title=f"Downloaded {title}!",
|
||||||
|
@ -426,7 +426,7 @@ class YTDLCog(commands.Cog):
|
||||||
url=webpage_url
|
url=webpage_url
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
await self.save_link(ctx.message, webpage_url, chosen_format_id)
|
await self.save_link(msg, webpage_url, chosen_format_id)
|
||||||
except discord.HTTPException as e:
|
except discord.HTTPException as e:
|
||||||
self.log.error(e, exc_info=True)
|
self.log.error(e, exc_info=True)
|
||||||
return await ctx.edit(
|
return await ctx.edit(
|
||||||
|
|
Loading…
Reference in a new issue