#Can't edit message to add an image.

1 messages · Page 1 of 1 (latest)

raven imp
#

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```
#

And here's how I send the message at first:

message = await ctx.respond("Initializing worm simulator...", components=view)

foggy pilot
#

What hikari version are you using?

#

python -m hikari should print out all the info

raven imp
#

Actually, I can see that it works on my phone. So it's probably an error with my discord client