fix(moderation): added message to case's change argument response if no changes have been made
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 47s

This commit is contained in:
Seaswimmer 2023-12-15 09:59:32 -05:00
parent 2788cc57f0
commit b01a2bbb21
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -465,6 +465,9 @@ class Moderation(commands.Cog):
elif change['type'] == 'RESOLVE': elif change['type'] == 'RESOLVE':
embed.add_field(name='Resolve', value=f"**User:** `{name}` ({user['id']})\n**Reason:** {change['reason']}\n**Timestamp:** {timestamp}", inline=False) embed.add_field(name='Resolve', value=f"**User:** `{name}` ({user['id']})\n**Reason:** {change['reason']}\n**Timestamp:** {timestamp}", inline=False)
else:
embed.description = "*No changes have been made to this case.* 🙁"
return embed return embed
if embed_type == 'log': if embed_type == 'log':