Sending a file in a followup's ephemeral Message will throw a 'Cannot Send Empty Message' error
yagomichalak opened this issue · comments
I tried following up an ephemeral message with a message that contains a file, but it'd say that it cannot send an empty message. When I specified a content, it'd just send the content itself, but not the file.
await interaction.send(type=5, ephemeral=True)
or
await interaction.reply(type=5, ephemeral=True)
or
await interaction.create_response(type=5, ephemeral=True)
and at the end
file = discord.File("/path_to_image/image.png")
await interaction.followup(file=file)
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message
Fixed in 1.3.3, thanks for reporting this issue!