From 7d3d4f7369eda0ba46ea0eec223bc7ad207b6839 Mon Sep 17 00:00:00 2001 From: Jelle Janssens Date: Mon, 4 Nov 2024 15:04:06 +0100 Subject: [PATCH] Issue #54 - Change the log to DisplayName (username) --- src/helpers/ban.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/ban.py b/src/helpers/ban.py index 402b933..8790696 100644 --- a/src/helpers/ban.py +++ b/src/helpers/ban.py @@ -136,10 +136,10 @@ async def ban_member( if not dm_banned_member: message += " Could not DM banned member due to permission error." - member_name = f"{member.name} ({member.id})" + member_name = f"{member.display_name} ({member.name})" embed = discord.Embed( title=f"Ban request #{ban_id}", - description=f"{author.name} would like to ban {member_name} until {end_date} (UTC). Reason: {reason}", ) + description=f"{author.display_name} ({author.name}) would like to ban {member_name} until {end_date} (UTC). Reason: {reason}", ) embed.set_thumbnail(url=f"{settings.HTB_URL}/images/logo600.png") embed.add_field(name="Approve duration:", value=f"/approve {ban_id}", inline=True) embed.add_field(name="Change duration:", value=f"/dispute {ban_id} ", inline=True)