fix(aurora): use interaction.channel.send instead

This commit is contained in:
Seaswimmer 2024-06-05 00:54:05 -04:00
parent d1b5346396
commit 67e3abf5ce
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -129,13 +129,12 @@ class ImportAuroraView(ui.View):
with open(filename, "w", encoding="utf-8") as f: with open(filename, "w", encoding="utf-8") as f:
dump(obj=failed_cases, fp=f, indent=2) dump(obj=failed_cases, fp=f, indent=2)
await interaction.edit_original_response( await interaction.channel.send(
content="Import complete.\n" content="Import complete.\n"
+ warning("Failed to import the following cases:\n"), + warning("Failed to import the following cases:\n"),
attachments=[File( file=File(
filename, f"failed_cases_{interaction.guild.id}.json" filename, f"failed_cases_{interaction.guild.id}.json"
) )
]
) )
os.remove(filename) os.remove(filename)