Change embed format
This commit is contained in:
parent
b665fa45b8
commit
be1618c782
1 changed files with 2 additions and 5 deletions
|
@ -165,13 +165,10 @@ class CaseCog(Cog):
|
|||
if admin:
|
||||
admin_text = admin.mention
|
||||
|
||||
fields = (
|
||||
EmbedField(name="Admin", value=admin_text),
|
||||
EmbedField(name="Reason", value=parent_action.reason),
|
||||
)
|
||||
fields = (EmbedField(name=action.action_type.title(), value=parent_action.reason),)
|
||||
embed = build_embed(
|
||||
title="Moderation Case Action",
|
||||
description=f"{user_mention} was warned by {admin_text}",
|
||||
description=f"{admin_text} initiated an action against {user_mention}",
|
||||
fields=fields,
|
||||
timestamp=parent_action.created_at,
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue