fix(moderation): case fields are no longer inline
Some checks failed
Pylint / Pylint (push) Failing after 1m11s
Some checks failed
Pylint / Pylint (push) Failing after 1m11s
This commit is contained in:
parent
e22910b27b
commit
c0857a9038
1 changed files with 2 additions and 2 deletions
|
@ -389,9 +389,9 @@ class Moderation(commands.Cog):
|
|||
if case['duration'] != 'NULL':
|
||||
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.add_field(name='Reason', value=f"```{case['reason']}```")
|
||||
embed.add_field(name='Reason', value=f"```{case['reason']}```", inline=False)
|
||||
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)
|
||||
else:
|
||||
await interaction.response.send_message(content=f"No case with case number `{case_number}` found.", ephemeral=True)
|
||||
|
|
Loading…
Reference in a new issue