WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit 67e3abf5ce - Show all commits

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)