fix(moderation): case fields are no longer inline
Some checks failed
Pylint / Pylint (push) Failing after 1m11s

This commit is contained in:
Seaswimmer 2023-10-05 13:12:22 -04:00
parent e22910b27b
commit c0857a9038
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -389,9 +389,9 @@ class Moderation(commands.Cog):
if case['duration'] != 'NULL': if case['duration'] != 'NULL':
expired = True if case["end_timestamp"] <= time.time() or case['resolved'] == 1 else False expired = True if case["end_timestamp"] <= time.time() or case['resolved'] == 1 else False
embed.description = embed.description + f"\n**Duration:** {humanize.precisedelta(case['duration'])}\n**Expired:** {expired}" embed.description = embed.description + f"\n**Duration:** {humanize.precisedelta(case['duration'])}\n**Expired:** {expired}"
embed.add_field(name='Reason', value=f"```{case['reason']}```") embed.add_field(name='Reason', value=f"```{case['reason']}```", inline=False)
if case['resolved'] == 1: if case['resolved'] == 1:
embed.add_field(name='Resolve Reason', value=f"```{case['resolve_reason']}```") embed.add_field(name='Resolve Reason', value=f"```{case['resolve_reason']}```", inline=False)
await interaction.response.send_message(embed=embed, ephemeral=ephemeral) await interaction.response.send_message(embed=embed, ephemeral=ephemeral)
else: else:
await interaction.response.send_message(content=f"No case with case number `{case_number}` found.", ephemeral=True) await interaction.response.send_message(content=f"No case with case number `{case_number}` found.", ephemeral=True)