WIP: Refactor Aurora (3.0.0) #29
1 changed files with 23 additions and 20 deletions
|
@ -96,6 +96,7 @@ class ImportAuroraView(ui.View):
|
|||
else:
|
||||
duration = None
|
||||
|
||||
try:
|
||||
Moderation.log(
|
||||
bot=interaction.client,
|
||||
guild_id=self.ctx.guild.id,
|
||||
|
@ -116,6 +117,8 @@ class ImportAuroraView(ui.View):
|
|||
database=database,
|
||||
return_obj=False
|
||||
)
|
||||
except Exception as e:
|
||||
failed_cases.append(str(case["moderation_id"]) + f": {e}")
|
||||
|
||||
await interaction.edit_original_response(content="Import complete.")
|
||||
if failed_cases:
|
||||
|
|
Loading…
Reference in a new issue