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
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 47s
This commit is contained in:
parent
2788cc57f0
commit
b01a2bbb21
1 changed files with 3 additions and 0 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue