fix(moderation): fixed case command's evidenceformat option
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 45s
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 45s
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:
|
||||
case_dict = await fetch_case(case, interaction.guild.id)
|
||||
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.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"
|
||||
|
|
Loading…
Reference in a new issue