Araeynn commited on
Commit
1695c24
1 Parent(s): 6d33b1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -244,7 +244,7 @@ async def on_message(message:discord.Message):
244
  image.save(f"{imgn}.png")
245
  file = discord.File(f"{imgn}.png", filename=f"{imgn}.png")
246
  embed.set_image(url=f"attachment://{imgn}.png")
247
- await e.edit(embed=embed, attachment=file)
248
 
249
  @bot.command(description="Start a chatbot conversation in the channel.")
250
  async def setup(ctx:discord.ApplicationContext):
 
244
  image.save(f"{imgn}.png")
245
  file = discord.File(f"{imgn}.png", filename=f"{imgn}.png")
246
  embed.set_image(url=f"attachment://{imgn}.png")
247
+ await e.edit(embed=embed, files=[file], attachments=[])
248
 
249
  @bot.command(description="Start a chatbot conversation in the channel.")
250
  async def setup(ctx:discord.ApplicationContext):