fix(moderation): fixed messed up embeds
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
ee7b64cc78
commit
e1d84dfc4b
1 changed files with 5 additions and 5 deletions
|
@ -60,9 +60,9 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact
|
|||
elif case_dict['target_type'] == 'CHANNEL':
|
||||
target_user = await fetch_channel_dict(interaction, case_dict['target_id'])
|
||||
if target_user['mention']:
|
||||
target_name = f"{target_user['mention']} ({target_user['id']})"
|
||||
target_name = f"{target_user['mention']}"
|
||||
else:
|
||||
target_name = f"`{target_user['name']}` ({target_user['id']})"
|
||||
target_name = f"`{target_user['name']}`"
|
||||
|
||||
moderator_user = await fetch_user_dict(interaction, case_dict['moderator_id'])
|
||||
moderator_name = f"`{moderator_user['name']}`" if moderator_user['discriminator'] == "0" else f"`{moderator_user['name']}#{moderator_user['discriminator']}`"
|
||||
|
@ -127,9 +127,9 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact
|
|||
elif case_dict['target_type'] == 'CHANNEL':
|
||||
target_user = await fetch_channel_dict(interaction, case_dict['target_id'])
|
||||
if target_user['mention']:
|
||||
target_name = f"{target_user['mention']} ({target_user['id']})"
|
||||
target_name = f"{target_user['mention']}"
|
||||
else:
|
||||
target_name = f"`{target_user['name']}` ({target_user['id']})"
|
||||
target_name = f"`{target_user['name']}`"
|
||||
|
||||
moderator_user = await fetch_user_dict(interaction, case_dict['moderator_id'])
|
||||
moderator_name = moderator_user['name'] if moderator_user['discriminator'] == "0" else f"{moderator_user['name']}#{moderator_user['discriminator']}"
|
||||
|
@ -157,7 +157,7 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact
|
|||
if target_user['mention']:
|
||||
target_name = target_user['mention']
|
||||
else:
|
||||
target_name = target_user['name']
|
||||
target_name = f"`{target_user['name']}`"
|
||||
|
||||
moderator_user = await fetch_user_dict(interaction, case_dict['moderator_id'])
|
||||
moderator_name = moderator_user['name'] if moderator_user['discriminator'] == "0" else f"{moderator_user['name']}#{moderator_user['discriminator']}"
|
||||
|
|
Loading…
Reference in a new issue