fix(aurora): use interaction.channel.send instead
This commit is contained in:
parent
d1b5346396
commit
67e3abf5ce
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue