WIP: Refactor Aurora (3.0.0) #29

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

View file

@ -96,6 +96,7 @@ class ImportAuroraView(ui.View):
else: else:
duration = None duration = None
try:
Moderation.log( Moderation.log(
bot=interaction.client, bot=interaction.client,
guild_id=self.ctx.guild.id, guild_id=self.ctx.guild.id,
@ -116,6 +117,8 @@ class ImportAuroraView(ui.View):
database=database, database=database,
return_obj=False return_obj=False
) )
except Exception as e:
failed_cases.append(str(case["moderation_id"]) + f": {e}")
await interaction.edit_original_response(content="Import complete.") await interaction.edit_original_response(content="Import complete.")
if failed_cases: if failed_cases: