fix(moderation): fixed export filename
Some checks failed
Pylint / Pylint (3.10) (push) Has been cancelled
Some checks failed
Pylint / Pylint (3.10) (push) Has been cancelled
This commit is contained in:
parent
5740ba851f
commit
4d97d6722d
1 changed files with 1 additions and 1 deletions
|
@ -747,7 +747,7 @@ class Moderation(commands.Cog):
|
|||
result_dict_list.append(case_dict)
|
||||
if export:
|
||||
try:
|
||||
filename = data_manager.cog_data_path(cog_instance=self) + f"moderation_{interaction.guild.id}.json"
|
||||
filename = str(data_manager.cog_data_path(cog_instance=self)) + {os.sep} + f"moderation_{interaction.guild.id}.json"
|
||||
with open(filename, "w") as f:
|
||||
json.dump(result_dict_list, f)
|
||||
await interaction.followup.send(file=discord.File(f"moderation_{interaction.guild.id}.json"), ephemeral=ephemeral)
|
||||
|
|
Loading…
Reference in a new issue