WIP: Refactor Aurora (3.0.0) #29
1 changed files with 3 additions and 3 deletions
|
@ -1086,13 +1086,13 @@ class Aurora(commands.Cog):
|
|||
return
|
||||
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
|
||||
if export:
|
||||
|
|
Loading…
Reference in a new issue