From 67e3abf5cec07f0cc415b06ebb58b820bfd0f18a Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Wed, 5 Jun 2024 00:54:05 -0400 Subject: [PATCH] fix(aurora): use interaction.channel.send instead --- aurora/importers/aurora.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aurora/importers/aurora.py b/aurora/importers/aurora.py index 7810c4d..468eb25 100644 --- a/aurora/importers/aurora.py +++ b/aurora/importers/aurora.py @@ -129,13 +129,12 @@ class ImportAuroraView(ui.View): with open(filename, "w", encoding="utf-8") as f: dump(obj=failed_cases, fp=f, indent=2) - await interaction.edit_original_response( + await interaction.channel.send( content="Import complete.\n" + warning("Failed to import the following cases:\n"), - attachments=[File( + file=File( filename, f"failed_cases_{interaction.guild.id}.json" ) - ] ) os.remove(filename)