WIP: Refactor Aurora (3.0.0) #29

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

View file

@ -1086,13 +1086,13 @@ class Aurora(commands.Cog):
return return
if target: if target:
filename = "moderation_target_" + str(target.id) + "_" + str(interaction.guild.id) + ".json" filename = f"moderation_target_{str(target.id)}_{str(interaction.guild.id)}.json"
moderations = await Moderation.find_by_target(interaction.client, interaction.guild.id, target.id) moderations = await Moderation.find_by_target(interaction.client, interaction.guild.id, target.id)
elif moderator: elif moderator:
filename = "moderation_moderator_" + str(moderator.id) + "_" + str(interaction.guild.id) + ".json" filename = f"moderation_moderator_{str(moderator.id)}_{str(interaction.guild.id)}.json"
moderations = await Moderation.find_by_moderator(interaction.client, interaction.guild.id, moderator.id) moderations = await Moderation.find_by_moderator(interaction.client, interaction.guild.id, moderator.id)
else: else:
filename = "moderation_" + str(interaction.guild.id) + ".json" filename = f"moderation_{str(interaction.guild.id)}.json"
moderations = await Moderation.get_latest(interaction.client, interaction.guild.id) moderations = await Moderation.get_latest(interaction.client, interaction.guild.id)
if export: if export: