Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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):
|