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
|
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:
|
||||||
|
|
Loading…
Reference in a new issue