forked from blizzthewolf/SeaCogs
fix(moderation): fixed case command's evidenceformat option
This commit is contained in:
parent
c3767d919b
commit
424a22672b
1 changed files with 0 additions and 2 deletions
|
@ -799,8 +799,6 @@ class Moderation(commands.Cog):
|
||||||
if case != 0:
|
if case != 0:
|
||||||
case_dict = await fetch_case(case, interaction.guild.id)
|
case_dict = await fetch_case(case, interaction.guild.id)
|
||||||
if case_dict:
|
if case_dict:
|
||||||
if evidenceformat:
|
|
||||||
await interaction.response.edit_message(content=f"```Case #{case_dict['moderation_id']:,} ({str.title(case_dict['moderation_type'])})\nTarget: ```", ephemeral=ephemeral)
|
|
||||||
if export:
|
if export:
|
||||||
if export.value == 'file' or len(str(case_dict)) > 1800:
|
if export.value == 'file' or len(str(case_dict)) > 1800:
|
||||||
filename = str(data_manager.cog_data_path(cog_instance=self)) + str(os.sep) + f"moderation_{interaction.guild.id}_case_{case}.json"
|
filename = str(data_manager.cog_data_path(cog_instance=self)) + str(os.sep) + f"moderation_{interaction.guild.id}_case_{case}.json"
|
||||||
|
|
Loading…
Reference in a new issue