I'm trying to send a message and then add and update the image after I've sent the message. However the bot just...doesn't. Not even an error. I can edit the content just fine but not the image. Here's my code:
async for image in image_generator:
try:
file = hikari.File(image)
print("Edited")
await message.edit(attachment=file)
await image_manager.delete(image)
await asyncio.sleep(2)
except Exception as e:
from bot import logger
logger.error(f"Error in /worm command: {e}")
await message.edit(f"An error occurred!{await utils.error_fun()}", components=[])
return```